# HG changeset patch # User Rik # Date 1388629495 28800 # Node ID d638db6d045cef65a529ce1a232da22443806805 # Parent 1874a5a142eeeb0e7e8bed37e696cb91ff7218de 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). diff -r 1874a5a142ee -r d638db6d045c doc/interpreter/debug.txi --- 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: