Ёмае. 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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Más respuestas (4)
Walter Roberson
el 29 de Ag. de 2011
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 comentarios
Dmitry Borovoy
el 29 de Ag. de 2011
1 comentario
Walter Roberson
el 30 de Ag. de 2011
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
el 30 de Ag. de 2011
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 comentarios
Ver también
Categorías
Más información sobre Debugging and Analysis en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!