# debugger: Extract running state from DebugSession mode and remove mode field \(\#29646\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 9767033985d7eefa431b1caaad4168a783e88b06

Requested commit: 9767033985d7eefa431b1caaad4168a783e88b06

Commit: 9767033985d7eefa431b1caaad4168a783e88b06

Tree: ae0bbd0d4167977d8e2849d6d4c9db6f394c53a8

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Extract running state from DebugSession mode and remove mode field (#29646)

DebugSession.mode is no longer needed because project::debugger::Session
manages its own state now (booting, running, terminated), and removing
mode simplifies a lot of the code that uses running state.

I used Zed AI to do a good chunk of the refactor, but I doubled-checked
everything it did and changed a good amount of its updates.

Release Notes:

- N/A

Co-authored-by: Zed AI <ai@zed.dev>
```

## Parents

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

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