from time to time, when I am debugging a STM32 with OpenOCD and some error occurr (e.g. I put a wrong address in the Memory-Viewer or disconnect spontaneous the device), there is a long timeout of about a minute in which a can’t access VisualStudio. Is it possible to reduce this timeout?
Normally if a gdb command takes too long, VisualGDB should show a popup window allowing to cancel that command. Does it appear in the case you are describing?
Normally this window appear, but in some cases it don’t. And then there is a long timeout. Worth mentioning: Normally VisualStudio goes into background, when it hangs, and is asking you, if you want to force it to close. But in this special case I can close it only via the task-manager. Or I must wait that minute.
This looks like a bug. VisualGDB is designed to always show the timeout window and to be able to cancel the hanging gdb immediately. If you could let us know the exact steps to reproduce the hang, we should be able to fix this quickly.
This could happen if you press Shift-F5 while VisualGDB is still initializing the debug session. Unfortunately this is a VS limitation that cannot be easily addressed. We may add a workaround to this in the future versions, but it will involve unreliable hooks into VS internals. As a workaround, please press the “Cancel” button in the GDB Session window instead of Shift-F5 if you want to abort a debug session before it has initialized.