How can I turn off dbstop if error
65 次查看(过去 30 天)
显示 更早的评论
I use the 'dbstop if error' to debug my programs which works perfectly fine for me. But during the writing of some code, it tends to stop in native functions that seemingly try to complete my tiping or give me hints while in the editor (for example functionhintsfunc.m or LinkProp.m) Due to the debugger I am then in the window of said function and have to close it again and stop the debugger. That is very annoying during coding. So how do I get out of the debugger mode without having to close and reopen Matlab? I tried searching for an answer, but all I get is 'dbclear' or 'dbquit' which does not solve my problem. I'm thankful for all suggestions!
0 个评论
采纳的回答
Jan
2015-3-17
编辑:Jan
2015-3-17
At least
dbclear all
disables all debugger break points. But
dbclear if error
clears the "if error" break only. This is explained in doc dbclear . Matlab's documentation is a treasure.
If this is not the wanted behavior, please explain again, what you are looking for. Actually dbstop if error let the debugger only stop, when there is a hard error, which is not covered by a TRY-CATCH-block. Did you type dbstop if all error?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Debugging and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!