Condition in conditional breakpoint ignored: debugger stops there anyway
Show older comments
It sometimes happens that conditions I set for a given breakpoint are ignored: the debugger will stop there even if the condition isn't yet met, as shown in the situation below, where no other breakpoints existed in the script:

Sometimes restarting Matlab seems to help, but not always. What is the reason for this?
Thanks for any help.
Answers (1)
Image Analyst
on 18 May 2022
0 votes
Conditions are only updated, I believe, then the file is saved. If you change the condition you may have to save the file, which you might not be able to do if there are any changes that you've made while stopped at a break point.
4 Comments
z8080
on 19 May 2022
z8080
on 20 May 2022
Image Analyst
on 20 May 2022
Perhaps, but the good news is that they fixed it and you have R2022a so you're all set. 🙂
z8080
on 20 May 2022
Categories
Find more on Debugging and Improving Code in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!