Help with Go debugger #9720
Unanswered
flo8
asked this question in
Troubleshooting
Replies: 1 comment
-
Worked fine for me in macOS in iTerm2.
Then it begins to debug on my breakpoint, where I can step in, out, next, and other things with the debug menu. Maybe one of those steps you skipped? Keep in mind, debugging in helix is experimental, so there may be issues with using it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I have a Go project that compiles just fine using go build. When opening it with Helix and launching the debugger, an error happens (see log below). The autocompletion works well. Only debugging doesn't seem to work even if dlv is detected.
Reproduction steps:
Go is properly installed on the system (1.22) with
hx --health go
giving the following output:Open any simple Go project/file that compiles. Then press < space > gl and then choose Source and main.go file
(this was advised here #6903)
I didn’t modify the
languages.toml
and using the default Helix config.I expected this to happen:
Start the debugging session until my first breakpoint.
Instead, this happened:
I get the following error in the statusbar:
Async job failed: Some(Object {"error": Object {"format": String("Failed to launch: Build error: Check the debug console for details."), "id": Number(3000), "showUser": Bool(false)}})
Helix log:
Platform
macOS
Terminal Emulator
iTerm2
Installation Method
Brew
Helix Version
23.10 (f6021dd)
Am I missing something in how to use the debugger with Helix? The very same project runs the debugger just fine in VSCode.
Note: I preferred to put this in discussion rather than issues as I am not sure this is a bug/issue yet.
Beta Was this translation helpful? Give feedback.
All reactions