go-delve / delve

Delve is a debugger for the Go programming language.
MIT License
22.9k stars 2.14k forks source link

dap: how to treat terminateDebuggee==true with remote attach to multi-client dlv-attach #3014

Open polinasok opened 2 years ago

polinasok commented 2 years ago

I have a draft of a fix, but would like to discuss first if the current behavior even needs fixing.

Current behavior:

Question: should multi-client Stop leave the attached debuggee process running when the debugger stops?

@suzmue @hyangah @briandealwis

briandealwis commented 2 years ago

In the disconnect cases, does “leave process” mean that the process is left in a running state?

My $0.02: “Stop” means terminate the process, regardless of multiclient. The multiclient case is only interesting in that it allows for disconnect as an option.

polinasok commented 2 years ago

In multi-client case "leave process" can mean running or halted, but that's controlled by a separate flag.