# debugger: Fix panics when debugging with inline values or confirming in console \(\#30677\) · gitcafe/zed

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

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

Visibility: public

Requested revision: f4eea0db2efb03363257392eb8d710e08dfdf98c

Requested commit: f4eea0db2efb03363257392eb8d710e08dfdf98c

Commit: f4eea0db2efb03363257392eb8d710e08dfdf98c

Tree: 3aaba16abac0ff4416396c249c27986da4200682

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Fix panics when debugging with inline values or confirming in console (#30677)

The first panic was caused by an unwrap that assumed a file would always
have a root syntax node.

The second was caused by a double lease panic when clicking enter in the
debug console while there was a completion menu open

Release Notes:

- N/A
```

## Parents

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

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