debug_mode
Variable for controlling the debugger.
Range:
3 - Perform a single step ahead, skip over functions
(lite-C only).
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.
type:
var
Remarks:
-
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
a wait
instruction, a C-Script function can prevent it's own debugging for security
reasons.
- 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.
Example:
debug_mode = 0 // run until next breakpoint
See also:
Debugging,
debug_external,
wait
► latest
version online