Debug and Focus, Huh?

3 visualizaciones (últimos 30 días)
dpb
dpb el 15 de En. de 2019
Editada: dpb el 20 de En. de 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! :(

Respuestas (2)

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

Iniciar sesión para comentar.


Jan
Jan el 15 de En. de 2019
Editada: dpb el 20 de En. de 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 comentario
dpb
dpb el 19 de En. de 2019
Editada: dpb el 20 de En. de 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" :)

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by