23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2dbstop<br />

Purpose Set breakpoints in M-file function<br />

Graphical<br />

Interface<br />

dbstop<br />

As an alternative to the dbstop function, you can use the Breakpoints menu<br />

or the breakpoint alley in the Editor/Debugger.<br />

Syntax dbstop in mfile<br />

dbstop in mfile at lineno<br />

dbstop in mfile at subfun<br />

dbstop if error<br />

dbstop if all error<br />

dbstop if warning<br />

dbstop if naninf<br />

dbstop if infnan<br />

Description dbstop in mfile temporarily stops execution of mfile when you run it, at the<br />

first executable line, putting <strong>MATLAB</strong> in debug mode. mfile must be in a<br />

directory that is on the search path or in the current directory. If you have<br />

graphical debugging enabled, the <strong>MATLAB</strong> Debugger opens with a breakpoint<br />

at the first executable line of mfile. You can then use the debugging utilities,<br />

review the workspace, or issue any valid <strong>MATLAB</strong> function. Use dbcont or<br />

dbstep to resume execution of mfile. Use dbquit to exit from the Debugger.<br />

dbstop in mfile at lineno temporarily stops execution of mfile when you<br />

run it, just prior to execution of the line whose number is lineno, putting<br />

<strong>MATLAB</strong> in debug mode. mfile must be in a directory that is on the search<br />

path or in the current directory. If you have graphical debugging enabled, the<br />

<strong>MATLAB</strong> Debugger opens mfile with a breakpoint at line lineno. If that line<br />

is not executable, execution stops and the breakpoint is set at the next<br />

executable line following lineno. When execution stops, you can use the<br />

debugging utilities, review the workspace, or issue any valid <strong>MATLAB</strong><br />

function. Use dbcont or dbstep to resume execution of mfile. Use dbquit to<br />

exit from the Debugger.<br />

dbstop in mfile at subfun temporarily stops execution of mfile when you<br />

run it, just prior to execution of the subfunction subfun, putting <strong>MATLAB</strong> in<br />

debug mode. mfile must be in a directory that is on the search path or in the<br />

current directory. If you have graphical debugging enabled, the <strong>MATLAB</strong><br />

Debugger opens mfile with a breakpoint at the subfunction specified by<br />

2-389

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!