Variable for controlling the debugger.
3 - Perform a single step ahead, skip over functions
2 - Perform a single step ahead, step into functions.
1 - Debugger is active, script execution is halted.
0 - Run until next breakpoint.
-1 - Run and ignore all further breakpoints.
This variable is modified by
hitting a breakpoint
, as well as by the [Esc] and [Space] keys in single
step mode when debug_external is not set.
- By setting this variable at 0 at the beginning or after
instruction, a C-Script function can prevent it's own debugging for security
- By setting this variable at 2 or 3 through
a DLL, the current instruction is executed, debug_mode is
set back to 1 and the debugger
moves to the next instruction.
debug_mode = 0 // run until next breakpoint