annotate scripts/miscellaneous/debug.m @ 13867:922bfdd80413

Clean up help about old flags for debug variables * debug.m: Change the wording about old flags into new functions * pt-assign.cc (maybe_warn_former_built_in_variable): Clarify wording about assigning values to functions.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 14 Nov 2011 21:50:16 -0500
parents c792872f8942
children 472a25155d82
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
11523
fd0a3ac60b0e update copyright notices
John W. Eaton <jwe@octave.org>
parents: 9245
diff changeset
1 ## Copyright (C) 2008-2011 David Bateman
7817
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
2 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
3 ## This file is part of Octave.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
4 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
5 ## Octave is free software; you can redistribute it and/or modify it
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
6 ## under the terms of the GNU General Public License as published by
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
7 ## the Free Software Foundation; either version 3 of the License, or (at
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
8 ## your option) any later version.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
9 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
10 ## Octave is distributed in the hope that it will be useful, but
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
13 ## General Public License for more details.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
14 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
15 ## You should have received a copy of the GNU General Public License
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
16 ## along with Octave; see the file COPYING. If not, see
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
17 ## <http://www.gnu.org/licenses/>.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
18
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
19 ## -*- texinfo -*-
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
20 ## @deftypefn {Function File} {} debug ()
9051
1bf0ce0930be Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents: 7817
diff changeset
21 ## Summary of the debugging commands. The debugging commands that are
7817
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
22 ## available in Octave are
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
23 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
24 ## @table @code
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
25 ## @item keyboard
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
26 ## Force entry into debug mode.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
27 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
28 ## @item dbstop
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
29 ## Add a breakpoint.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
30 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
31 ## @item dbclear
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
32 ## Remove a breakpoint.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
33 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
34 ## @item dbstatus
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
35 ## List all breakpoints.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
36 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
37 ## @item dbcont
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
38 ## Continue execution from the debug prompt.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
39 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
40 ## @item dbstack
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
41 ## Print a backtrace of the execution stack.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
42 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
43 ## @item dbstep
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
44 ## Execute one or more lines and re-enter debug mode
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
45 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
46 ## @item dbtype
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
47 ## List the function where execution is currently stopped, enumerating
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
48 ## the lines.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
49 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
50 ## @item dbup
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
51 ## The workspace up the execution stack.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
52 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
53 ## @item dbdown
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
54 ## The workspace down the execution stack.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
55 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
56 ## @item dbquit
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
57 ## Quit debugging mode and return to the main prompt.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
58 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
59 ## @item debug_on_error
13867
922bfdd80413 Clean up help about old flags for debug variables
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 11587
diff changeset
60 ## Function to query or set whether to enter debug mode in case Octave
922bfdd80413 Clean up help about old flags for debug variables
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 11587
diff changeset
61 ## encounters an error.
7817
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
62 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
63 ## @item debug_on_warning
13867
922bfdd80413 Clean up help about old flags for debug variables
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 11587
diff changeset
64 ## Function to query or set whether to enter debug mode in case Octave
922bfdd80413 Clean up help about old flags for debug variables
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 11587
diff changeset
65 ## encounters a warning.
7817
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
66 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
67 ## @item debug_on_interrupt
13867
922bfdd80413 Clean up help about old flags for debug variables
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 11587
diff changeset
68 ## Function to query or set whether to enter debug mode in case Octave
922bfdd80413 Clean up help about old flags for debug variables
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents: 11587
diff changeset
69 ## encounters an interupt.
11587
c792872f8942 all script files: untabify and strip trailing whitespace
John W. Eaton <jwe@octave.org>
parents: 11523
diff changeset
70 ##
7817
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
71 ## @end table
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
72 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
73 ## @noindent
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
74 ## when Octave encounters a breakpoint or other reason to enter debug
9051
1bf0ce0930be Grammar check TexInfo in all .m files
Rik <rdrider0-list@yahoo.com>
parents: 7817
diff changeset
75 ## mode, the prompt changes to @code{"debug>"}. The workspace of the function
7817
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
76 ## where the breakpoint was encountered becomes available and any Octave
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
77 ## command that works within that workspace may be executed.
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
78 ##
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
79 ## @seealso{dbstop, dbclear, dbstatus, dbcont, dbstack, dbstep, dbtype,
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
80 ## dbup, dbdown, dbquit, debug_on_error, debug_on_warning,
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
81 ## debug_on_interrupt}
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
82 ## @end deftypefn
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
83
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
84 function debug ()
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
85 help ("debug");
31fb919ba0c0 Add the debug function
David Bateman <dbateman@free.fr>
parents:
diff changeset
86 endfunction