How to setup Go debugging in intellij?

Answered

Hi,

I've got a fairly basic Go project in Intellij, which I can run and "debug". But when I'm running it in debug mode it never hits any breakpoints, it doesn't show any errors either, so how do I proceed? Or is debugging not supported in IntelliJ for Go?

0
12 comments

Hi,

Could you please upload IDE logs to http://uploads.jetbrains.com/ and provide its name?

I'll take a look.

0

Hi,

I've uploaded them: Upload id: 2021_03_27_HGMBgM1Wi9MzaL7z (file: idea-logs-20210327-124110.zip)

0

Hi,

Thanks. I see that you're using an older version of IntelliJ IDEA. Could you please update it to the latest release (Help | Check for Updates)?

If you can't, please, enable all default plugins (File | Settings | Plugins | Installed) and try to reproduce the issue again.

0

Hi,

I've upgraded to 2021.1 but no change. Still does nothing. 

0

Hi,

Thanks. Could you please upload logs from the new version of IntelliJ IDEA with additional logging:

1. Add #com.goide.dlv.DlvVm in Help | Diagnostic Tools | Debug Log Settings...
2. Restart the IDE.
3. Reproduce the problem.
4. Upload logs http://uploads.jetbrains.com/ and provide its name.

0

Hi

Upload id: 2021_04_23_AwvXpCaEU9tb4r5T (file: idea.log)

0

Hi,

I see in the logs that breakpoints are set correctly and without errors.

Does it work if you enable bundled plugins (File | Settings | Plugins | Installed)? If not, please, provide a screenshot of your breakpoint and where you set it.

0

Hi,

I've narrowed down the problem: When I uninstall and reinstall the bundled Go plugin, debugging will work for some time, then break itself again. 

0

Hi,

Could you please attach a piece of information from the previous message?

0

This is the log after the go plugin uninstall and reinstall: Upload id: 2021_04_29_XQDoz9G3q9jxFfZK (file: idea.log)

 

Debugging works now, although I have to unset and reset the breakpoints sometimes.

0

Debugging works now, although I have to unset and reset the breakpoints sometimes.

Do you see any errors or warnings if you hover over to an unresponsive breakpoint?

0

Please sign in to leave a comment.