Navigation

Operators and Keywords

Function List:

C++ API

Command: dbstop func
Command: dbstop func line
Command: dbstop func line1 line2
Command: dbstop line
Built-in Function: rline = dbstop ("func")
Built-in Function: rline = dbstop ("func", line)
Built-in Function: rline = dbstop ("func", line1, line2, …)
Built-in Function: dbstop ("func", [line1, …])
Built-in Function: dbstop (line, …)

Set a breakpoint at line number line in function func.

Arguments are

func

Function name as a string variable. When already in debug mode this argument can be omitted and the current function will be used.

line

Line number where the breakpoint should be set. Multiple lines may be given as separate arguments or as a vector.

When called with a single argument func, the breakpoint is set at the first executable line in the named function.

The optional output rline is the real line number where the breakpoint was set. This can differ from the specified line if the line is not executable. For example, if a breakpoint attempted on a blank line then Octave will set the real breakpoint at the next executable line.

See also: dbclear, dbstatus, dbstep, debug_on_error, debug_on_warning, debug_on_interrupt.

Package: octave