필터 지우기
필터 지우기

Can I avoid autoscroll while steping in debug mode?

조회 수: 3 (최근 30일)
Joaquin Ambia
Joaquin Ambia 2023년 9월 15일
댓글: Joaquin Ambia 2023년 12월 1일
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.

답변 (1개)

Piyush
Piyush 2023년 10월 10일
편집: Piyush 2023년 10월 10일
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!

카테고리

Help CenterFile Exchange에서 Specifying Target for Graphics Output에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by