Why is there no Error Handling section in the Breakpoint button dropdown in the R2018a Editor toolstrip?
3 次查看(过去 30 天)
显示 更早的评论
MathWorks Support Team
2017-12-22
编辑: MathWorks Support Team
2018-4-18
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?
采纳的回答
MathWorks Support Team
2018-3-14
编辑:MathWorks Support Team
2018-4-18
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 个评论
更多回答(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!