Illegal use of reserved keyword "classdef" when trying to continue debugging
24 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I've been getting this odd error a few times recently that I never had before when trying to use F5 to continue debugging my code:


I run some code (this happens to be from a UI so the first breakpoints are in App Designer, but behaviour is the same both there and here, in the normal editor on a later breakpoint), hit a breakpoint, see what I want to see or try something on command line, then I hit F5 to continue debugging. This is what I have done for the whole time I've used Matlab (almost 20 years), yet now I keep getting this error. Does anyone else get this? It's only started happening since R2025b
Some obvious things I already know and have checked:
- My F5 shortcut is still set as normal:

- I'm aware, of course, that trying to run a class file using F5 often leads to errors, but here I am clearly in debug mode, in a breakpoint (also shown by the K>> on command line) so it should interpret F5 as 'Continue', not as 'Run', as it always has in the past.
- F10 to 'Step' still works as expected, as does clicking the green arrows to Continue (which also shows the F5 shortcut in the tooltip when I hover over it).
- It's not specifically this line of code. I covered the rest of the code as I can't share it, but it also happens, for example, if I do F10 once, then am on the 'end' statement of the function and press F5 again, or basically anywhere else in this debug session that the code lands.
I suspect this is just the latest in a long line of issues I am having with App Designer not being properly in sync and generally being unusable at times, even though it is in the main Editor too, the first breakpoint was in an App.
3 Commenti
Risposte (0)
Vedere anche
Categorie
Scopri di più su Debugging and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!