# debugger: Improve Go support \(\#31559\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 94a5fe265d5bb8e6ff1fd6fa5e114553fc553ad2

Requested commit: 94a5fe265d5bb8e6ff1fd6fa5e114553fc553ad2

Commit: 94a5fe265d5bb8e6ff1fd6fa5e114553fc553ad2

Tree: d38ee833644c1bf8f31b35180712a809e0c064ed

Author: Alex

Committer: GitHub

## Message

```
debugger: Improve Go support (#31559)

Supersedes https://github.com/zed-industries/zed/pull/31345 
This PR does not have any terminal/console related stuff so that it can
be solved separately.

Introduces inline hints in debugger:
<img width="1141" alt="image"
src="https://github.com/user-attachments/assets/b0575f1e-ddf8-41fe-8958-2da6d4974912"
/>
Adds locators for go, so that you can your app in debug mode:
<img width="706" alt="image"
src="https://github.com/user-attachments/assets/df29bba5-8264-4bea-976f-686c32a5605b"
/>
As well is allows you to specify an existing compiled binary:
<img width="604" alt="image"
src="https://github.com/user-attachments/assets/548f2ab5-88c1-41fb-af84-115a19e685ea"
/>

Release Notes:

- Added inline value hints for Go debugging, displaying variable values
directly in the editor during debug sessions
- Added Go debug locator support, enabling debugging of Go applications
through task templates
- Improved Go debug adapter to support both source debugging (mode:
"debug") and binary execution (mode: "exec") based on program path

cc @osiewicz, @Anthony-Eid
```

## Parents

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

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