GNU Octave Manual Version 3 by John W. Eaton, David Bateman, Søren Hauberg Paperback (6"x9"), 568 pages ISBN 095461206X RRP £24.95 ($39.95) |
13.3 Debug Mode
There are two additional support functions that allow the user to interrogate where in the execution of a script Octave entered the debug mode and to print the lines in the script surrounding that point.
- Loadable Function: dbwhere ()
- Show where we are in the code
See also dbclear, dbstatus, dbstop
- Loadable Function: dbtype ()
- List script file with line numbers.
See also dbclear, dbstatus, dbstop
Debug mode also allows single line stepping through a function using
the commands dbstep
and dbnext
. These differ slightly in
the way they treat the next executable line if the next line itself is a
function defined in an m-file. The dbnext
command will execute
the next line, while staying in the existing function being debugged.
The dbstep
command will step in to the new function.
ISBN 095461206X | GNU Octave Manual Version 3 | See the print edition |