# debugger: Kill debug sessions on app quit \(\#33273\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d34d4f2ef1ec4f8841d40a89890b58b41a2ea1dd)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d34d4f2ef1ec4f8841d40a89890b58b41a2ea1dd

Requested commit: d34d4f2ef1ec4f8841d40a89890b58b41a2ea1dd

Commit: d34d4f2ef1ec4f8841d40a89890b58b41a2ea1dd

Tree: babdae8f947a1275aecc08b2d6abcd379b034ea6

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Kill debug sessions on app quit (#33273)

Before this PR force quitting Zed would leave hanging debug adapter
processes and not allow debug adapters to clean up their sessions
properly.

This PR fixes this problem by sending a disconnect/terminate to all
debug adapters and force shutting down their processes after they
respond.

Co-authored-by: Cole Miller \<cole@zed.dev\>

Release Notes:

- debugger: Shutdown and clean up debug processes when force quitting
Zed

---------

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
Co-authored-by: Remco Smits <djsmits12@gmail.com>
```

## Parents

- [c610ebfb0302479e8efcbe5896087337d5f705c7](https://git.cafe/gitcafe/zed/commit/c610ebfb0302479e8efcbe5896087337d5f705c7?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d34d4f2ef1ec4f8841d40a89890b58b41a2ea1dd?format=markdown)
