DADiSP Worksheet Functions > Function Categories > Debugging > DBSTOP
Sets a debugger breakpoint.
DBSTOP function
DBSTOP lineno
DBSTOP("function")
DBSTOP(lineno)
"function" |
- |
A string. The name of the SPL function. |
lineno |
- |
Optional. An integer. The line number. Defaults to the first executable line of the function. |
Nothing.
dbstop myfunc
myfunc(10)
dbstop 7
dbcont
sets a breakpoint in the SPL routine named myfunc and starts debugging. The myfunc routine is then called and a new breakpoint is established at line 7.
Use DBCONT to start the debugging process. Use DBSTEP or DBCONT to resume execution after a breakpoint has been reached. Use DBSTATUS for information on the current breakpoint. Use DBQUIT to exit debugging.
Any DADiSP command or function can be executed once a breakpoint has been reached.
Both the command form,
dbstop function
and functional form
dbstop("function")
are supported.