Mercurial > hg > octave-nkf
changeset 18189:d638db6d045c stable
doc: Note that dbstop can be used with class methods as well (bug #40958).
* debug.txi: Note that dbstop can be used with class methods as well
(bug #40958).
author | Rik <rik@octave.org> |
---|---|
date | Wed, 01 Jan 2014 18:24:55 -0800 |
parents | 1874a5a142ee |
children | ab775508dff9 |
files | doc/interpreter/debug.txi |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/doc/interpreter/debug.txi +++ b/doc/interpreter/debug.txi @@ -81,9 +81,12 @@ @DOCSTRING(dbstop) @noindent -Note that breakpoints cannot be set in built-in functions -(e.g., @code{sin}, etc.) or dynamically loaded function (i.e., oct-files). To -set a breakpoint immediately on entering a function, the breakpoint +Breakpoints in class methods are also supported (e.g., +@code{dbstop("@@class/method")}). However, breakpoints cannot be set in +built-in functions (e.g., @code{sin}, etc.) or dynamically loaded function +(i.e., oct-files). + +To set a breakpoint immediately on entering a function, the breakpoint should be set to line 1. The leading comment block will be ignored and the breakpoint will be set to the first executable statement in the function. For example: