# break-key-on macro

The break-key-on macro enables the BREAK
key on the current port. If the PIB number is specified, the BREAK
key is enabled on the requested port.

**Synonyms:** DEBUG-ON

## Syntax

```
break-key-on {pib.no}
```

## Parameter(s)

| pib.no | Process Identification Block (PIB) number. Default is the current process. |
| --- | --- |

## Description

By default, the debugger is enabled for all processes. This security feature can be used for
 end-user applications.

 If you disable the debugger for an account, users cannot break out of a process.

## Example(s)

```
break-key-on
[1322] Break key enabled.
```

```
break-key-on 35
[1346] break key enabled for pib 35.
```

## See also

- [break statement](https://d3codex.com/pickbasic-flashbasic/break-statement/)
- [break-key command](https://d3codex.com/tcl/break-key-command/)
- [break-key-off macro](https://d3codex.com/tcl/break-key-off-macro/)
- [brk-debug command](https://d3codex.com/tcl/brk-debug-command/)
- [brk-level command](https://d3codex.com/tcl/brk-level-command/)
- [debug command (TCL commands)](https://d3codex.com/tcl/debug-command-tcl-commands/)
- [debug statement](https://d3codex.com/pickbasic-flashbasic/debug-statement/)
- [u318d user exit](https://d3codex.com/proc/u318d-user-exit/)

---
Source: https://d3codex.com/tcl/break-key-on-macro/ - part of the D3Codex reference.
