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