breakpoint_on(condition);

Conditional breakpoint. Activates the source debugger at any place in the script code as soon as the given condition becomes true. Very useful for observing the state of a certain variable during script execution.

Parameters:

condition - an expression that evaluates to false or true.

Remarks:

Speed:

Fast

Example:

breakpoint_on(x>1);  // breakpoint, when x greater than 1

See also:

function, breakpoint, Debugging, debug_external, debug_mode, wait