Debug mode in code with blocks(cells)
Afficher commentaires plus anciens
Hi, I often use blocks (cells?) (%%) in my programm. When I want to debug,say,third block, I insert breakpoint somewhere in this block. But I cannot evaluate (with ctrl+enter) until breakpoint. Is there a way to use breakpoints and not to evaluate all cells of the program each time?
Réponse acceptée
Plus de réponses (1)
Per Pettersson
le 27 Mai 2021
Modifié(e) : Per Pettersson
le 27 Mai 2021
0 votes
Another workaround is to temporarily put the contents of the cell in a separate script file, test_cell.m and call this from you original script, this allows you to set break points.
Catégories
En savoir plus sur Signal Attributes and Indexing dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!