$DEBUG compiler directive

$DEBUG Compiler Directive

Top  Previous  Next

 

The $DEBUG directive compiles the program in debug mode.

 

 

Format

 

$DEBUG

 

 

The $DEBUG directive is an alternative to use of the DEBUGGING keyword to the BASIC command. The $DEBUG directive must appear before any executable statements in the program.

 

During development, it is often useful to compile the entire application in debug mode. There is a small performance overhead running debug mode programs so it is recommended that production versions of the application should be compiled without this mode.

 

 

See also:

QMBasic debugger