DADiSP Worksheet Functions > Function Categories > Debugging > DBSTATUS

 

DBSTATUS

Purpose:

Displays the status of the debugger.

Syntax:

DBSTATUS

Returns:

The status of the debugger.

Example:

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.

Remarks:

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.

See Also:

DBCLEAR

DBCONT

DBDOWN

DBQUIT

DBSTACK

DBSTEP

DBSTEPI

DBSTEPO

DBSTOP

DBUP

LOCALS

VARS