How can I turn off dbstop if error

조회 수: 64 (최근 30일)
Marina Frye
Marina Frye 2015년 3월 17일
댓글: Lorenzo Meneghetti 2018년 4월 3일
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!

채택된 답변

Jan
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 CenterFile Exchange에서 Debugging and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by