Skip to content

debug: add an option to kill target process when detaching the debugger in attach mode #749

@polinasok

Description

@polinasok

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DebugIssues related to the debugging functionality of the extension.FrozenDueToAge

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions