$DEBUG Compiler Directive
The $DEBUG directive compiles the program in debug mode.
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.