Debug and Focus, Huh?

3 Ansichten (letzte 30 Tage)
dpb
dpb am 15 Jan. 2019
Bearbeitet: dpb am 20 Jan. 2019
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! :(

Antworten (2)

Steven Lord
Steven Lord am 15 Jan. 2019
Try turning off the "Automatically open files when MATLAB reaches a breakpoint" entry in the MATLAB Editor/Debugger preferences.
  1 Kommentar
dpb
dpb am 19 Jan. 2019
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...

Melden Sie sich an, um zu kommentieren.


Jan
Jan am 15 Jan. 2019
Bearbeitet: dpb am 20 Jan. 2019
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 Kommentar
dpb
dpb am 19 Jan. 2019
Bearbeitet: dpb am 20 Jan. 2019
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" :)

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Programming finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by