ZIm/crates/dap/src
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
..
adapters.rs debugger: Use JS adapter's suggested names for child sessions (#32474) 2025-06-10 14:24:43 -04:00
client.rs zlog: Replace usages of env_logger in tests with zlog (#31436) 2025-05-26 11:48:50 -04:00
dap.rs debugger: Relax implementation of validate_config to not run validation (#31785) 2025-05-30 23:08:41 +02:00
debugger_settings.rs debugger: Enable setting debug panel dock position to the side (#29914) 2025-05-05 21:27:20 +00:00
inline_value.rs debugger: Improve Go support (#31559) 2025-05-28 12:59:05 +02:00
proto_conversions.rs Use anyhow more idiomatically (#31052) 2025-05-20 23:06:07 +00:00
registry.rs debugger beta: Fix dap_schema for DAP extensions (#31173) 2025-05-22 07:24:46 -04:00
transport.rs debugger: Make sure debuggees are killed when quitting Zed (#32186) 2025-06-11 05:23:38 +00:00