Small company logo:
   History
 
Advertising banner:
 
 Debug
 
Purpose
Prints text to the console window only when the program is run from the development environment.
The Debug command acts like Print except that it is not executed when the built application is run, but is activated when run from the development environment. This is useful to prevent users from seeing debugging information after you build and release the application.
Debug can also be used as a variable to return the current debug status.
Syntax
Debug String
Debug = TRUE | FALSE


String
The text to be printed.
TRUE | FALSE
TRUE turns debugging on.

Examples
Sub Main()
        Print "This string will always be printed"
        Debug "This string only shows up when run from the development environment"
End Sub
Debug "This line will be seen"
Debug = false
Debug "This line will NOT be seen"
Debug = true
Debug "This line will be seen"
If (Debug = true) Debug "Debugging is turned on"