how to dynamically pause the matlab into debugging while execution by a Gui?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I have a long non-gui matlab code with different function m-files which do some simulations.
I want to dynamically pause the code from running by going to the debugging mode while execution. How can I write a matlab Gui check box that from the start of the running the gui shows "go to debugging" and "continue" check boxes. As soon as I check "go to debugging" the program should go to debugging mode.
The reason is that I have some global variables and I want to stop the code from the printed results and change that variable, like in debugging mode, and then press continue for rest of execution with the new global variable.
I appreciate your help.
0 commentaires
Réponse acceptée
Rick Rosson
le 1 Sep 2014
Modifié(e) : Rick Rosson
le 1 Sep 2014
Create a callback function for the "go to debugging" checkbox. Inside the callback, include the command
dbstop;
When finished debugging, simply type
dbcont
At the command prompt.
1 commentaire
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Debugging and Analysis dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!