Mercurial > hg > octave-lyh
annotate scripts/miscellaneous/debug.m @ 16403:1de4ec2a856d
Matlab compatibility for strsplit()
* scripts/strings/strsplit.m: Matlab compatible version.
* NEWS: Mention break in backward compatibility.
* scripts/deprecated/javafields.m: Modify call to strsplit().
* scripts/deprecated/javamethods.m: ditto
* scripts/general/fieldnames.m: ditto
* scripts/general/int2str.m: ditto
* scripts/general/methods.m: ditto
* scripts/general/num2str.m: ditto
* scripts/help/gen_doc_cache.m: ditto
* scripts/help/help.m: ditto
* scripts/help/lookfor.m: ditto
* scripts/io/strread.m: ditto
* scripts/java/javaclasspath.m: ditto
* scripts/miscellaneous/compare_versions.m: ditto
* scripts/miscellaneous/computer.m: ditto
* scripts/miscellaneous/fact.m: ditto
* scripts/miscellaneous/tar.m: ditto
* scripts/miscellaneous/unpack.m: ditto
* scripts/miscellaneous/what.m: ditto
* scripts/miscellaneous/zip.m: ditto
* scripts/pkg/private/configure_make.m: ditto
* scripts/pkg/private/fix_depends.m: ditto
* scripts/pkg/private/generate_lookfor_cache.m: ditto
* scripts/pkg/private/list_forge_packages.m: ditto
* scripts/pkg/private/unload_packages.m: ditto
* scripts/pkg/private/write_index.m: ditto
* scripts/plot/private/__file_filter__.m: ditto
* scripts/plot/private/__fltk_file_filter__.m: ditto
* scripts/plot/private/__go_draw_axes__.m: ditto
* scripts/plot/private/__next_line_style__.m: ditto
* scripts/strings/untabify.m: ditto
* scripts/testfun/rundemos.m: ditto
* scripts/testfun/runtests.m: ditto
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Sun, 31 Mar 2013 19:19:04 -0400 |
parents | 72c96de7a403 |
children | bc924baa2c4e |
rev | line source |
---|---|
14138
72c96de7a403
maint: update copyright notices for 2012
John W. Eaton <jwe@octave.org>
parents:
14053
diff
changeset
|
1 ## Copyright (C) 2008-2012 David Bateman |
7817 | 2 ## |
3 ## This file is part of Octave. | |
4 ## | |
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. | |
9 ## | |
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. | |
14 ## | |
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/>. | |
18 | |
19 ## -*- texinfo -*- | |
20 ## @deftypefn {Function File} {} debug () | |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
21 ## Summary of debugging commands. For more information on each command |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
22 ## and available options use @code{help CMD}. |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
23 ## |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
24 ## The debugging commands available in Octave are |
7817 | 25 ## |
26 ## @table @code | |
27 ## @item dbstop | |
28 ## Add a breakpoint. | |
29 ## | |
30 ## @item dbclear | |
31 ## Remove a breakpoint. | |
32 ## | |
33 ## @item dbstatus | |
34 ## List all breakpoints. | |
35 ## | |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
36 ## @item dbwhere |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
37 ## Report the current file and line number where execution is stopped. |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
38 ## |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
39 ## @item dbtype |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
40 ## List the function where execution is currently stopped, enumerating |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
41 ## the line numbers. |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
42 ## |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
43 ## @item dbstep |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
44 ## @itemx dbnext |
14053
4f7bbf1c6fe4
debug.m: Hint more at the capabilities of dbstep (bug #34712)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14050
diff
changeset
|
45 ## Execute (step) one or more lines, follow execution into (step into) a |
4f7bbf1c6fe4
debug.m: Hint more at the capabilities of dbstep (bug #34712)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14050
diff
changeset
|
46 ## function call, or execute until the end of a function (step out), and |
4f7bbf1c6fe4
debug.m: Hint more at the capabilities of dbstep (bug #34712)
Jordi Gutiérrez Hermoso <jordigh@octave.org>
parents:
14050
diff
changeset
|
47 ## re-enter debug mode. |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
48 ## |
7817 | 49 ## @item dbcont |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
50 ## Continue normal code execution from the debug prompt. |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
51 ## |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
52 ## @item dbquit |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
53 ## Quit debugging mode immediately and return to the main prompt. |
7817 | 54 ## |
55 ## @item dbstack | |
56 ## Print a backtrace of the execution stack. | |
57 ## | |
58 ## @item dbup | |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
59 ## Move up the execution stack. |
7817 | 60 ## |
61 ## @item dbdown | |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
62 ## Move down the execution stack. |
7817 | 63 ## |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
64 ## @item keyboard |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
65 ## Force entry into debug mode from an m-file. |
7817 | 66 ## |
67 ## @item debug_on_error | |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
68 ## Configure whether Octave enters debug mode when it encounters an error. |
7817 | 69 ## |
70 ## @item debug_on_warning | |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
71 ## Configure whether Octave enters debug mode when it encounters a warning. |
7817 | 72 ## |
73 ## @item debug_on_interrupt | |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
74 ## Configure whether Octave enters debug mode when it encounters an interrupt. |
11587
c792872f8942
all script files: untabify and strip trailing whitespace
John W. Eaton <jwe@octave.org>
parents:
11523
diff
changeset
|
75 ## |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
76 ## @item isdebugmode |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
77 ## Return true if in debug mode. |
7817 | 78 ## @end table |
79 ## | |
80 ## @noindent | |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
81 ## 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
|
82 ## mode, the prompt changes to @code{"debug>"}. The workspace of the function |
7817 | 83 ## where the breakpoint was encountered becomes available and any Octave |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
84 ## command that is valid in that workspace context may be executed. |
7817 | 85 ## |
14050
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
86 ## @seealso{dbstop, dbclear, dbstatus, dbwhere, dbtype, dbcont, dbquit, |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
87 ## dbstack, dbup, dbdown, keyboard, debug_on_error, debug_on_warning, |
472a25155d82
doc: Clarify documentation on debug commands (Bug #34712)
Rik <octave@nomad.inbox5.com>
parents:
13867
diff
changeset
|
88 ## debug_on_interrupt, isdebugmode} |
7817 | 89 ## @end deftypefn |
90 | |
91 function debug () | |
92 help ("debug"); | |
93 endfunction |