Is there a UI interface in MATLAB which could disable all breakpoints set in a MATLAB File in MATLAB 7.9 (R2009b)?

1 回表示 (過去 30 日間)
I want to disable all the breakpoints in an MATLAB File, from the command prompt. I do not want to right click on each break point and select the "Disable Breakpoint" option.

採用された回答

MathWorks Support Team
MathWorks Support Team 2009 年 10 月 1 日
The ability to disable all breakpoints in a MATLAB File using some UI interface is not available in MATLAB 7.9 (R2009b).
However you could use the following workaround:
To disable all the break points in an MATLAB File, you need to set the expression property of the breakpoints on all lines to 'false'. The following code disables all the breakpoints in a MATLAB File.
s = dbstatus
s.expression(:) = {'false'}
dbstop(s)
The structure 's' contains the line numbers of all the breakpoints, with the corresponding expression values of these break points. You can add this as a shortcut to the MATLAB desktop.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDebugging and Analysis についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2009b

Community Treasure Hunt

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

Start Hunting!

Translated by