Matlab not stopping on some breakpoints
113 views (last 30 days)
Matlab suddenly (this afternoon) stopped honoring some, but not all, of my breakpoints on a file I have been working on since this morning.
I tried reloading Matlab, but problem persisted.
I tried removing my only "clear" statement (I have no "clear all" statements) and it had no effect.
Matlab is useless fo rme until this gets fixed!!!!!
Gurpreet Singh on 1 Jul 2020
Please refer to the following Doc in MATLAB Command Window:
You can also try to use the following command at the beginning of script:
>>dbstop if caught error
MATLAB will go to debug mode at the erroneous line, though this will probably stop more than the user wants.
You can also execute only selected code by keyboard shortcut F9.
Image Analyst on 1 Jul 2020
Yes, it can happen and I see it fairly often. It's usually when I do something like set breakpoints and run then stop at a breakpoint. Then change a variable name or edit the code somehow and set new breakpoint. Then it sometimes won't stop at the new breakpoints, I think because the file needs to be saved again. If I just exit and restart, then it will see the new breakpoints and stop at them.