DEBUG-ON/DEBUG-OFF Command

The DEBUG-ON command enables the mvBASIC debugger for the specified process. The DEBUG-OFF command disables the debugger for the specified process. You must have SYS2 privileges to use this command on processes other than your own, and SYS1 privileges to affect your own process.

Format

DEBUG-ON [n]

DEBUG-OFF [n]

Parameter(s)

n

Process number. Default is the current process.

Description

By default, the mvBASIC debugger is enabled for all processes. If you disable the debugger for an account, users cannot break out of a process. This is a useful security feature for end-user applications.

Disabling the Debugger

The following example disables the mvBASIC debugger for your own user process:

>DEBUG-OFF

To confirm that the debugger is disabled, try to break into the mvBASIC debugger by pressing BREAK.

Enabling the Debugger

To enable the mvBASIC debugger, type:

>DEBUG-ON