Breakpoint

 

Causes a breakpoint on the next statement when used with a script debugger. Otherwise the command does nothing.

Syntax:

Breakpoint

Parameters:

(none)

Returns:

(not applicable)

 

Use this command with WinBatch Studio to cause execution to stop in the debugger. If this command is encountered outside of a debugger it is ignored.

Debuggers usually have a method of setting a breakpoint on particular lines of a script or even stepping through the lines one at a time, sometimes problems occur after extensive script execution where it would be tedious to step through. For example if you wish to investigate what happens on the 782'd pass of a FOR loop you could do something similar to the example code below:

 

Example:

a=1
b=1000
For xx = 1 To b
   If xx == 782 Then BreakPoint
   c=a+xx+1
Next
Message("Loop","Complete")

See Also:

Debug, DebugTrace… (see Windows Interface Language help)