ZIm/crates/dap
Cole Miller 6c0ea88f5b
debugger: Make sure debuggees are killed when quitting Zed (#32186)
Closes #31373 

We kill the DAP process in our `on_app_quit` handler, but the debuggee
might not be killed. Try to make this more reliable by making the DAP
process its own process group leader, and killing that entire process
group when quitting Zed.

I also considered going through the normal DAP shutdown sequence here,
but that seems dicey in a quit handler. There's also the DAP
`ProcessEvent` but it seems we can't rely on that as e.g. the JS DAP
doesn't send it.

Release Notes:

- Debugger Beta: Fixed debuggee processes not getting cleaned up when
quitting Zed.
2025-06-11 05:23:38 +00:00
..
docs Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00
src debugger: Make sure debuggees are killed when quitting Zed (#32186) 2025-06-11 05:23:38 +00:00
Cargo.toml debugger: Make sure debuggees are killed when quitting Zed (#32186) 2025-06-11 05:23:38 +00:00
LICENSE-GPL Debugger implementation (#13433) 2025-03-18 12:55:25 -04:00