Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Avoid refocusing editor to current line after error when debugging?

조회 수: 1 (최근 30일)
Evan
Evan 2018년 6월 8일
마감: MATLAB Answer Bot 2021년 8월 20일
When debugging/building a functions/scripts, I'll often run blocks of edited code while execution is paused. Frequently, this results in errors. Because I use dbstop error, this will pause the execution a second time. So I inspect the error and resume execution (bringing me back to the original location in the stack). What happens then is that the editor refocuses/scrolls to the current paused location in code, which is often hundreds of lines from where I'm actually working. Is there any way to disable this? It's physically disorienting.

답변 (1개)

Walter Roberson
Walter Roberson 2018년 6월 8일
Preferences -> Editor/Debugger
and turn off "Automatically open files when MATLAB reaches a breakpoint"
  댓글 수: 1
Evan
Evan 2018년 6월 9일
That doesn't seem to change the behavior for this particular case. Once the file is open, it refocuses to the line at which execution is paused, even after turning off "Automatically open files when MATLAB reaches a breakpoint."

이 질문은 마감되었습니다.

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by