英文:
IntelliJ IDEA go-lang-idea-plugin Alpha debugging under Ubuntu
问题
我正在尝试使用IntelliJ Idea 14.0.2和当前的go-lang-idea-plugin alpha 0.9.16-dev-0.9.16-alpha来调试Go 1.4。根据https://github.com/go-lang-plugin-org/go-lang-idea-plugin/pull/588中的说明,这应该可以工作。
该插件对于运行"Hello world"是正常的,但是我的"Debug"按钮是灰色的。我已经将gdb更新到版本6.8.1,版本6.8和6.7.7也不起作用。这是我的调试配置:
我漏掉了什么?我需要特定的gdb版本还是问题出在其他地方?还是因为我使用的是Go 1.4的原因?
英文:
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
得分: 2
解决方法是:
1)转到“编辑配置”=>“运行”
2)取消选中“运行前构建”
3)选中“运行前构建”
4)选中“启用调试”(在切换“运行前构建”两次之前是灰色的)。
所以这是一个奇怪的用户界面问题。
英文:
The solution was :
-
Go to "Edit configuration" => "Run"
-
Uncheck "Build before run"
-
Check "Build before run"
-
Check "Enable debugging" (was greyed out before toggling "Build before run" twice).
So it was a strange UI issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论