IntelliJ IDEA go-lang-idea-plugin Alpha debugging under Ubuntu

不打扰是莪最后的温柔 提交于 2019-12-12 14:58:03

问题


I am trying to debug Go 1.4 using IntelliJ Idea 14.0.2 and the current go-lang-idea-plugin alpha 0.9.16-dev-0.9.16-alpha.9 from http://github-intellij-plugin.appspot.com/go-lang-plugin-org/go-lang-idea-plugin/alpha.xml . As mentioned in https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/588 this should work.

The plugin is working fine for running "Hello world", but my "Debug"-Button is greyed out. I already updated gdb to version 6.8.1, versions 6.8 and 6.7.7 did not work either. This is my debug configuration :

What am I missing? Do I need a specific gdb version or is the problem somewhere else? Or is it because I am using Go 1.4?


回答1:


The solution was :

1) Go to "Edit configuration" => "Run"

2) Uncheck "Build before run"

3) Check "Build before run"

4) Check "Enable debugging" (was greyed out before toggling "Build before run" twice).

So it was a strange UI issue.



来源:https://stackoverflow.com/questions/27691782/intellij-idea-go-lang-idea-plugin-alpha-debugging-under-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!