Table of Contents

Debug statement

Description

Use in source code to activate the debugger at a particular point.

Syntax

Debug

Notes

OpenInsight 10 implements a “$DEBUG” statement that you can use in place of the normal “Debug” statement: The difference here is that the debugger only triggers if the code is running on the same machine that it was compiled on, so if your program does is released with a compiled $DEBUG statement it shouldn’t execute on other machines. For complete details, please see this article on the RevDevX blog.

Example

* Calls the debugger if error_flag has been set.

If error_flag Then Debug
 
**
**