When we use attach (local or remote) and then stop the debug session, the target process keeps running.
By comparison here is what happens with dlv client:
$ dlv connect :2345
Type 'help' for list of commands.
(dlv) exit
Would you like to kill the process? [Y/n]
I do not know how to do something like this interactively in vscode, but we could have an attribute in launch.json to specify this before the session runs.
When we use attach (local or remote) and then stop the debug session, the target process keeps running.
By comparison here is what happens with dlv client:
I do not know how to do something like this interactively in vscode, but we could have an attribute in
launch.jsonto specify this before the session runs.