How can I "watch" variables using the MATLAB Debugger?
Mostra commenti meno recenti
I would like to set "watches" on variables while using the MATLAB Debugger. In particular, I would like to configure the debugger to break when the variable reaches a certain value or exceeds a certain range.
Risposta accettata
Più risposte (1)
Marshall
il 28 Apr 2014
3 voti
You can set conditional breakpoints to stop when a variable meets some condition that you specify: Where breakpoints are shown right click and select "set conditional breakpoint" or right click on an existing breakpoint and choose "set/modify condition". Then type an expression that will be evaluated to trigger the breakpoint, e.g. a>100.
Categorie
Scopri di più su Debugging and Improving Code in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!