dbstop in file
dbstop in file at location
dbstop(b)
| Parameter | Description |
|---|---|
| file | file name where the breakpoint is set, specified as a character vector or string scalar. The file must be accessible on the search path or in the current folder. A filemarker (>) can be used to specify a local function. |
| location | breakpoint location in the file. a line number. |
| b | structure array previously returned by dbstatus, containing saved breakpoints to restore. |
dbstop sets breakpoints in programs for interactive debugging. When execution reaches a breakpoint, execution pauses and the interpreter enters debug mode.
Breakpoints can be set at specific files or at specific locations.
This function can only be called from the command line.
Text editor support debugging features integrate with these functions to provide a seamless debugging experience.
See also the Debugging Workflow for an overview of debugging in Nelson.
function z = buggy(x)
n = length(x);
z = (1:n) / x';
end
dbstop in buggy
buggy(1:5)
dbstop in myfile>myfunc
b = dbstatus();
dbclear all
dbstop(b)
| Version | Description |
|---|---|
| 1.16.0 | initial version |