# debugger: Add run to cursor and evaluate selected text actions \(\#28405\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2752c08810760cc0f43eb113df8032766b49eaa6

Requested commit: 2752c08810760cc0f43eb113df8032766b49eaa6

Commit: 2752c08810760cc0f43eb113df8032766b49eaa6

Tree: e586f811aa1cc034baee4c7a32a0a5ef15fcbcc7

Author: Anthony Eid

Committer: GitHub

## Message

```
debugger: Add run to cursor and evaluate selected text actions (#28405)

## Summary

### Actions

This PR implements actions that allow a user to "run to cursor" and
"evaluate selected text" while there's an active debug session and
exposes the functionality to the UI as well.

- Run to cursor: Can be accessed by right clicking on the gutter
- Evaluate selected text: Can be accessed by selecting text then right
clicking in the editor

### Bug fixes

I also fixed these bugs as well

- Panic when using debugger: Stop action
- Debugger actions command palette filter not working properly in all
cases
- We stopped displaying the correct label in the session's context menu
when a session was terminated

Release Notes:

- N/A

---------

Co-authored-by: Max Brunsfeld <max@zed.dev>
Co-authored-by: Remco Smits <djsmits12@gmail.com>
```

## Parents

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

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