# debugger: Select first stack frame with valid path \(\#32724\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e8d495806f3f87ea88f1106ed2fa3ef964c7792a

Requested commit: e8d495806f3f87ea88f1106ed2fa3ef964c7792a

Commit: e8d495806f3f87ea88f1106ed2fa3ef964c7792a

Tree: 04dfe27b9b38c35551139d863f5fdcb08d1ebacc

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Select first stack frame with valid path (#32724)

This PR addresses an issue where we could get a stack frame list and
automatically select a stack frame that didn't have a valid path.
Causing a failure on Zed's end to select/update the active debug line.
The fix for this is selecting the first non-subtle stack frame that has
the optional path parameter.

We also made subtle stack frames move into their own collapsable list as
well.

Release Notes:

- debugger: Fix edge case where hitting a breakpoint wouldn't take you
to the active debug line

Co-authored-by: Remco Smits <djsmits12@gmail.com>
```

## Parents

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

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