dbstop if error: before it was stopping at error in my code, now set the break point into Matlab native functions
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Francesco Sgromo
le 9 Fév 2023
Modifié(e) : Luca Ferro
le 9 Fév 2023
Hi,
in the past i have used the dbstop if error t debug my code. It was particurarly useful when the error occurs at some step in a cycle.
Recently I am not able to use it anymore in this way because, when an error occurs, the breapoint is set inside the matlab core function that generate the error. I have tried the StepIn/StepOut buttons, but i can't get the debug on my line of coding.
I don't know if I have to change the settings or to use another dbstop option.
Thanks in advance for your help-
F
0 commentaires
Réponse acceptée
Luca Ferro
le 9 Fév 2023
Modifié(e) : Luca Ferro
le 9 Fév 2023
you can use the navigation bar on top of the editor.
Here i'm inside matlab defined funciton
Here i hop out and it points at my line of code:
0 commentaires
Plus de réponses (1)
Matt J
le 9 Fév 2023
Since you're using R2022, you should be able to use the drop-down or tab bar in the Editor to go directly where you want in the debug stack.
0 commentaires
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!