# debugger: Fix spec violation with threads request being issued before debug session is initialized \(\#33627\) · gitcafe/zed

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

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

Visibility: public

Requested revision: bc5927d5afc3487e4c6c83cb004709c81578ff33

Requested commit: bc5927d5afc3487e4c6c83cb004709c81578ff33

Commit: bc5927d5afc3487e4c6c83cb004709c81578ff33

Tree: b44d7e78e657a14a271f83897e82d5f48b79fcfe

Author: Piotr Osiewicz

Committer: GitHub

## Message

```
debugger: Fix spec violation with threads request being issued before debug session is initialized (#33627)

Follow-up to #32852. This time we'll check if the debug session is
initialized before querying threads.

Release Notes:

- Fix Zed's debugger issuing threads request before it is allowed to do
so per DAP specification.
```

## Parents

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

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