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?
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.
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.
From the documentation of dbclear
dbclear if error
Removes the breakpoints set using thedbstop if error
anddbstop if error identifier
statements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With