Mercurial > octave-nkf
diff doc/interpreter/debug.txi @ 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 | dae2230227a7 |
children | 7e39cbefe299 |
line wrap: on
line diff
--- a/doc/interpreter/debug.txi Wed Jan 01 17:54:46 2014 -0800 +++ b/doc/interpreter/debug.txi Wed Jan 01 18:24:55 2014 -0800 @@ -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: