Breakpoint does not work
Show older comments
Greetings,
I meet a very weird problem about breakpoint and none of my friends cannot solve it.
I put two breakpoints in 43 and 44 lines of Model class as Figure 1 shows.

When I runned the program, it stopped as Figure 2. From Figure 2, we can see the program never stopped at 43 and 44 lines, but directly threw the error and even skipped the 43 line disp(t).

However, if I put breakpoints at 42 lines and rerunned it, it can stop normally as Figure 3. But it still skipped 43 line and threw the error as Figure 2; and cannot stop at 43 and 44 lines, when exitflag was not 1.

In addition, I used "clear" in the main script, not "clear all". My Matlab version is R2018a.
Accepted Answer
More Answers (0)
Categories
Find more on Code Execution in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!