Filter löschen
Filter löschen

Breakpoints stopped working since I upgraded to R2021b

17 Ansichten (letzte 30 Tage)
himura
himura am 22 Dez. 2021
Kommentiert: himura am 31 Dez. 2021
I upgraded from R2019a and many new features are present in R2021b. I am pretty sure it is some new feature I am not aware of.
My problem is setting a breakpoint in a method in a class .m file.
The breakpoint is in the constructor being code from the command window. I am not doing anything different from what I used to do in R2019 but it is just ignoring all of my breakpoints. I think I just am not running in debug mode or something
I am pretty use I am calling the correct file. The file is also being saved before execution. Lemme know if more information is needed

Antworten (2)

Markus Schmidt
Markus Schmidt am 27 Dez. 2021
Bearbeitet: Image Analyst am 31 Dez. 2021
Dear Hazem,
I had the same problem. But the breakpoints are still available. You can activate a breakpoint by clicking directly on the line number in the left margin. If you click to the right of line number, you will run from the current location to this line and then stop.
  1 Kommentar
himura
himura am 31 Dez. 2021
i did not claim that they are not available. They just don't work and it goes right past them.

Melden Sie sich an, um zu kommentieren.


Srivardhan Gadila
Srivardhan Gadila am 31 Dez. 2021
There are some changes in interface and setting breakpoints from R2021b onwards. To understand the differences, you can refer to the following documentation pages:
W.r.t the latest release: Set Breakpoints & Debug MATLAB Code Files.
You can also refer to Use of Editor and Debugger with Classes for any additional information.
If you are not able to resolve the issue, you can contact support.
  1 Kommentar
himura
himura am 31 Dez. 2021
Perhaps I was not entirely clear. Clicking the "run" button is NOT the use-case for me. I need to call a custom class constructor method and see what's happening in there. Breakpoints used to work, now they do not. The code MUST run from the command window and NOT through the "RUN" button

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Workspace Variables and MAT-Files finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by