Variable Listener, debug if expr == true
조회 수: 2 (최근 30일)
이전 댓글 표시
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
Jan
2013년 4월 10일
This code is not in an M-file? Then why not placing it in an M-file and using conditional breakpoints?
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Event Functions에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!