1 ## Copyright (C) 2008-2012 David Bateman
3 ## This file is part of Octave.
5 ## Octave is free software; you can redistribute it and/or modify it
6 ## under the terms of the GNU General Public License as published by
7 ## the Free Software Foundation; either version 3 of the License, or (at
8 ## your option) any later version.
10 ## Octave is distributed in the hope that it will be useful, but
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 ## General Public License for more details.
15 ## You should have received a copy of the GNU General Public License
16 ## along with Octave; see the file COPYING. If not, see
17 ## <http://www.gnu.org/licenses/>.
20 ## @deftypefn {Function File} {} debug ()
21 ## Summary of debugging commands. For more information on each command
22 ## and available options use @code{help CMD}.
24 ## The debugging commands available in Octave are
31 ## Remove a breakpoint.
34 ## List all breakpoints.
37 ## Report the current file and line number where execution is stopped.
40 ## List the function where execution is currently stopped, enumerating
45 ## Execute (step) one or more lines, follow execution into (step into) a
46 ## function call, or execute until the end of a function (step out), and
47 ## re-enter debug mode.
50 ## Continue normal code execution from the debug prompt.
53 ## Quit debugging mode immediately and return to the main prompt.
56 ## Print a backtrace of the execution stack.
59 ## Move up the execution stack.
62 ## Move down the execution stack.
65 ## Force entry into debug mode from an m-file.
67 ## @item debug_on_error
68 ## Configure whether Octave enters debug mode when it encounters an error.
70 ## @item debug_on_warning
71 ## Configure whether Octave enters debug mode when it encounters a warning.
73 ## @item debug_on_interrupt
74 ## Configure whether Octave enters debug mode when it encounters an interrupt.
77 ## Return true if in debug mode.
81 ## When Octave encounters a breakpoint, or other reason to enter debug
82 ## mode, the prompt changes to @code{"debug>"}. The workspace of the function
83 ## where the breakpoint was encountered becomes available and any Octave
84 ## command that is valid in that workspace context may be executed.
86 ## @seealso{dbstop, dbclear, dbstatus, dbwhere, dbtype, dbcont, dbquit,
87 ## dbstack, dbup, dbdown, keyboard, debug_on_error, debug_on_warning,
88 ## debug_on_interrupt, isdebugmode}