So, if something is clearing the breakpoints, why is the editor not reflecting this clearing immediately? Accepted Answer. Vote 3. Cancel Copy to Clipboard.
Concerning the delayed update of the editor window to reflect that breakpoints have been cleared, it is not possible to have an immediate update of the editor when breakpoints are cleared in the editor. Chuck on 18 Jun Thanks for this answer, it was really helpful. But I have to tell that it is really annoying. Clear all should not clear the breakpoints. Walter Roberson on 19 Jun When you are doing that, it does not make sense to keep breakpoints.
You should be looking at clearvars instead of clear all. If you really need to keep breakpoints but want all files unloaded from memory and so on, then assign the output of dbstatus to a variable, save that variable, clear all , load the file, pass the loaded variable to dbstop. You could create a script for this purpose. But again, chances are high you are overusing clear all.
More Answers 0. Answered: Walter Roberson on 20 Mar I get the error:. Error using dbstop. You cannot set a breakpoint past the start of the last expression in file.
It is inside a loop and the file in itself is more than lines. When I try setting the breakpoint through the editor it just does not respond and ignores silently a red dot appears and disappear I am not sure what makes matlab think that it is the last line, but I have recently edited this file and before editing the last line was not EDIT: attached the file for reference.
Answers 2. Walter Roberson on 20 Mar Vote 1. Cancel Copy to Clipboard. That creates problems. Image Analyst on 19 Mar Line 46, according to your screenshot, has no code on it. Set a breakpoint only on lines that have code on them. Anything after line 45 is not working.
I will update the question. Made was while removing some comments. I find that I have to restart matlab to restore sanity. Saving and reloading the workspace makes this fairly painless. I suggest you submit a bug report for that here.
Note that you may have to create a free account. Add a comment. Active Oldest Votes. Improve this answer. Juhl Juhl 3 3 silver badges 16 16 bronze badges. I had the same issue. Delete the old function and paste the new one with the same name in the same directory. This solves the issue. My breakpoints are now visible as before. Sign up or log in Sign up using Google. Sign up using Facebook.
Sign up using Email and Password. Post as a guest Name. Email Required, but never shown.
0コメント