Azzera filtri
Azzera filtri

Can I avoid autoscroll while steping in debug mode?

3 visualizzazioni (ultimi 30 giorni)
When I am debugging, steping line by line, and I am reaching the bottom of the screen, Matlab scrolls down as I go down. While I can see this can be useful for some people I prefer not to have my text move. Is there a way to change this behavior?
I recently moved to Matlab 2023a.

Risposte (1)

Piyush
Piyush il 10 Ott 2023
Modificato: Piyush il 10 Ott 2023
I can understand that you are having issues while debugging your code because of MATLAB's inbuilt feature of autoscrolling over the breakpoints.
Please note that MATLAB currently does not support disabling the 'autoscroll' feature while debugging. However, there is workaround you can try. You can use breakpoints strategically in your code to pause the execution at specific locations. By placing breakpoints at critical points, you can control the flow of execution and manually step through the code without the need for automatic scrolling.
To set a breakpoint, simply click on the left margin of the MATLAB editor window next to the line where you want the execution to pause. A red circle will appear indicating the breakpoint. When you run your code in debug mode, MATLAB will halt at each breakpoint, allowing you to examine variables and step through the code manually using the debugging controls.
By using breakpoints effectively, you can have more control over the debugging process and keep the text stationary while examining your code.
Hope this helps!

Categorie

Scopri di più su Specifying Target for Graphics Output in Help Center e File Exchange

Prodotti


Release

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by