Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I disable dbstop if error in MATLAB

If often happens that I type dbstop if error in the MATLAB command line to catch and debug errors, but other than going to the debug menu and to the window (which I don't know how to find it in the new 2012b version) is there a way to disable dbstop if error in command line?

like image 950
Ali Avatar asked Oct 11 '12 10:10

Ali


People also ask

How to use dbstop if error in MATLAB?

Pause at First Executable Linefunction z = buggy(x) n = length(x); z = (1:n)./x; Issue the dbstop command and run buggy . MATLAB displays the line where it pauses and enters debug mode. Type dbquit to exit debug mode.

How do you remove a breakpoint in Matlab?

dbclear in file removes all breakpoints in the specified file. The in keyword is optional. dbclear in file at location removes the breakpoint set at the specified location in the specified file.


1 Answers

From the documentation of dbclear

dbclear if error Removes the breakpoints set using the dbstop if error and dbstop if error identifier statements.

like image 81
angainor Avatar answered Oct 06 '22 23:10

angainor