DADiSP Worksheet Functions > Function Categories > Debugging > DBSTATUS
Displays the status of the debugger.
DBSTATUS
The status of the debugger.
Consider the following SPL routine:
myfunc(x)
{
local y;
y = x*x;
return(y);
}
Now consider the following debugger session:
dbstop myfunc
dbcont
myfunc(10)
dbstatus
dbstep
dbstatus
sets a breakpoint in the SPL routine named myfunc and starts debugging. The myfunc routine is then called. The DBSTATUS command indicates the debugger stopped at line 5.
Next, DBSTEP executes the next line and DBSTATUS indicates the debugger is at line 6.
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.