How to disable "Cannot enable breakpoint(s) because of syntax error"

18 views (last 30 days)
How can I let MATLAB not complain about syntax error while saving a file? This is extremely annoying and counterproductive. It can complain on run-time, but I do not see the benefit of complaining while saving a file.
For example, I was writing a code of if-statement and saved the file before typing "end", as I always save frequently to avoid losing the code. MATLAB immediately moved my cursor to a random line (beginning of some for loop way above) which it thinks it was the cause of the problem. This is obviously annoying as I need to locate again the line that I was editing. I do not see any good reason to check the syntax error while saving the file. It is also inconsistent that this problem happens when ONLY when there's a breakpoint.
This is a really counterproductive and intrusive "feature" of MATLAB. If there's no option disable it, please remove this feature or give it at least an option to disable in the next release. Thanks.

Answers (0)

Categories

Find more on Files and Folders in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!