Why Don't Set Breakpoints Work in R2018b?
1 view (last 30 days)
I set breakponts in the script and they are ignored. The script executes past them. The breakpoints remain set (bright red). I have restarted MATLAB. I have restarted my computer then restarted MATLAB. I have cleared and reset the the breakpoints manually. I tried using the menu breakpoint Clear All and then manually resetting them. No change. I do not 'clear' anything in the script but my own variables. The code is definitely executing right past the breakpoint.
I tried resetting the breakpoints after a save right before executing the script (recommended here for another version). Nope. I read here about similar problems in other versions (like did you 'clear java') - not related to my problem.
Yair Altman on 11 Feb 2019
This could happen if your script runs inside a parallel loop (spmd or parfor), or is shaddowed by a binary version (e.g., file.m shaddowed by file.p or file.mex).
In such cases, Matlab uses a compiled version of the code and does use the source code in your script file, therefore never stopping at your breakpoint.