Ёмае. I understood my fail. I usually write in all my scripts 'clear all' instead 'clear varaibles'. And I just realized that this statement clears break points too. I'm moron. Thanks to this post http://www.mathworks.com/matlabcentral/answers/6007-breakpoints-unpredictable-in-r2011a
How to save breakpoints automaticaly
4 ビュー (過去 30 日間)
古いコメントを表示
Previous versions of Matlab saved breakpoints automaticaly. Now after each run all breakpoints are just disappear and I have to put them again. It's really annoying. Is there any settings to fix such feature(or bug)? I know about functions dbstop and dbstatus but it's wrong to use code when there are IDE. I must have opportunity to set breakpoints by mouse without additional movements
0 件のコメント
採用された回答
その他の回答 (4 件)
Walter Roberson
2011 年 8 月 29 日
When you say "after each run", do you mean that they disappear when you quit MATLAB, or that they disappear after you exit the debugger?
I have never had a version of MATLAB that saved breakpoints between sessions -- though I did once advise someone in CSSM how to code a breakpoint save and restore routine.
0 件のコメント
Dmitry Borovoy
2011 年 8 月 29 日
1 件のコメント
Walter Roberson
2011 年 8 月 30 日
Which version are you using?
There have been some reports with regards to R2011a paying attention to breakpoints only irregularly (especially on Mac), and there have been some for reports for R2010b (I think it was) about breakpoints not being settable (especially on Windows 7)
Breakpoints are not settable in older versions unless the file is writable... though there must be some provision for installed library routines as breakpoints could be set in those?
The 2010b Windows 7 problems I have not seen an explanation of yet; the obvious possibilities have been checked out with no configuration solutions found yet (that have been reported.) I think a person or two managed to get around it by running as administrator.
Daniel Shub
2011 年 8 月 30 日
I am not sure why your breakpoints are disappearing, but you should be able to write a timer callback function that uses dbstatus to get the break points and then dbstop to add them back.
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!