In our setup we have multiple remote C/C++ applications running on various VMs (like many other projects).
I'm working on making possible to remote debug these applications with VSCode (by attaching, not launching) .
So far I managed to get everything working but 1 very important detail: it's very important that the remote application isn't killed when I stop the debugger (GDB, to be precise).
This is because there are many setups scripts that are run on those applications and we can't re-run all of them every time we end a debugging session.
Is there any way to modify what gdb does at closing time? Ideally, I'd like to first detach the application from GDB and then exit GDB, which is what anyone would do to avoid the killing of the application.
I couldn't find any documentation, issues or unofficial guides regarding this.
Thank you in advance.
In our setup we have multiple remote C/C++ applications running on various VMs (like many other projects).
I'm working on making possible to remote debug these applications with VSCode (by attaching, not launching) .
So far I managed to get everything working but 1 very important detail: it's very important that the remote application isn't killed when I stop the debugger (GDB, to be precise).
This is because there are many setups scripts that are run on those applications and we can't re-run all of them every time we end a debugging session.
Is there any way to modify what gdb does at closing time? Ideally, I'd like to first detach the application from GDB and then exit GDB, which is what anyone would do to avoid the killing of the application.
I couldn't find any documentation, issues or unofficial guides regarding this.
Thank you in advance.