Debug and Focus, Huh?

3 ビュー (過去 30 日間)
dpb
dpb 2019 年 1 月 15 日
編集済み: dpb 2019 年 1 月 20 日
Is there no way to make focus stay in command window instead of jumping to editor when reach breakpoint????
Am always typing onto the code and screwing it up when what one really wants to do is to poke around with the command line...
VERY annoying! :(

回答 (2 件)

Steven Lord
Steven Lord 2019 年 1 月 15 日
Try turning off the "Automatically open files when MATLAB reaches a breakpoint" entry in the MATLAB Editor/Debugger preferences.
  1 件のコメント
dpb
dpb 2019 年 1 月 19 日
AH! I missed the meaning when looking at preferences on initial setup years and years and years ago and since it's always behaved that way didn't think to go look again...generally it's not a bad thing as a lot of the time one is actually poking around in the code is the reason for the breakpoint; in this case I'm using it to be able to do other things with results interactively before going on; the code itself is doing what is intended so is just in the way...

サインインしてコメントする。


Jan
Jan 2019 年 1 月 15 日
編集済み: dpb 2019 年 1 月 20 日
I'm using a tool under Windows, which let the focus follow the mouse: WizMouse. This is useful for scrolling in background windows, and it keeps the focus in the wanted window with[out (dpb)] the need to touch Matlab in any way.
  1 件のコメント
dpb
dpb 2019 年 1 月 19 日
編集済み: dpb 2019 年 1 月 20 日
I'd had one of those in the past, Jan, but lost it somewhere...being able to do that w/o the physical click is nice altho the cursor itself may not actually be in the command window at the time the breakpoint is entered I discovered if do something else during the debug session and then dbcont
I gave each a Vote as both are "partially most excellent" Answers but either leaves a manner in which may still be "issues" :)

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeProgramming についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by