Variable Listener, debug if expr == true
Show older comments
Is there a way to start debug when a variable changes to a specific value, and stop where this happens. I don't mean the conditional breakpoint. (No yellow breakpoints, they're not what i need).
my "breakpoint" is variable, it only stops
< pseudocode >
if expr
STOP NOW!
end
< /pseudocode >
Note: This code isn't in a .m file
Like stop on error warnings work. But stop on line where isempty(x), or x == 10
2 Comments
Jan
on 10 Apr 2013
This code is not in an M-file? Then why not placing it in an M-file and using conditional breakpoints?
Andreas Justin
on 10 Apr 2013
Edited: Andreas Justin
on 10 Apr 2013
Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!