Why is there no Error Handling section in the Breakpoint button dropdown in the R2018a Editor toolstrip?
3 views (last 30 days)
Show older comments
MathWorks Support Team
on 22 Dec 2017
Edited: MathWorks Support Team
on 18 Apr 2018
I am using R0218a and noticed that the Error Handling section in the breakpoint dropdown is gone.
This Error Handling section used to have functionality for: * Pause on Errors * Pause on Warnings * More Error and Warning Handling Options...
Where can I now find the functionality?
Accepted Answer
MathWorks Support Team
on 14 Mar 2018
Edited: MathWorks Support Team
on 18 Apr 2018
The options that were previously located on the Editor *tab, in the *Error Handling section of the Breakpoints button dropdown menu have been moved.
These options can now be found in the Run button dropdown menu.
To show the "Pause on Caught Errors" option under the Run button dropdown menu, change the "ShowPauseOnCaughtErrorOption" MATLAB setting:
>> s = settings;
>> s.matlab.editor.displaysettings.ShowPauseOnCaughtErrorOption.PersonalValue = 1;
For more information about how to interact with breakpoints using the above options, see:
The advanced error breakpoint configuration options previously available through Breakpoints > More Error and Warning Handling Options… can no longer be modified interactively. These options can still be modified programmatically using the dbstop function:
For example, to pause execution when a caught error occurs, use:
>> dbstop if caught error
To pause execution when a specific error, caught error or warning occurs, use:
>> dbstop if error IDENTIFIER
>> dbstop if caught error IDENTIFIER
>> dbstop if warning IDENTIFIER
0 Comments
More Answers (0)
See Also
Categories
Find more on Debugging and Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!