DADiSP Worksheet Functions > Function Categories > Debugging > DBSTOP

 

DBSTOP

Purpose:

Sets a debugger breakpoint.

Syntax:

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.

Returns:

Nothing.

Example:

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.

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.

 

Both the command form,

 

 dbstop function

 

and functional form

 

 dbstop("function")

 

are supported.

See Also:

DBCLEAR

DBCONT

DBDOWN

DBQUIT

DBSTACK

DBSTATUS

DBSTEP

DBSTEPI

DBSTEPO

DBUP

LOCALS

VARS