When I stop debugging the target halts, this was not the behavior in VisualGDB 5.1 and older.
I tried all different options in “when debug session ends” but all of them makes the target halt.
Also tried updating J-Link but that doesn’t help.
Please try manually running commands like ‘detach’ or ‘disconnect’ in the GDB session window and see if any of those ends debugging with resuming the target.
If it does, please configure VisualGDB to use that command on exit. If it does not work, please try enabling the GDB logging on the Advanced GDB Settings page of VisualGDB Project Properties. Then try ending debugging and check the last commands shown in the gdb log.
In the GDB CL I tried detach but target didn’t understand, then disconnect and it worked.
Changed to -target-disconnect in settings and after that it did work.
Strange because I tried all four options yesterday and none of them worked..
No problem. We would advise to backup your .vgdbsettings file with the settings that work so that if it stops working again you could compare the settings and see what breaks it.