IntelliJ IDEA go-lang-idea-plugin Alpha 在 Ubuntu 下的调试。

huangapple go评论85阅读模式
英文:

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也不起作用。这是我的调试配置:
IntelliJ IDEA go-lang-idea-plugin Alpha 在 Ubuntu 下的调试。

我漏掉了什么?我需要特定的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 :
IntelliJ IDEA go-lang-idea-plugin Alpha 在 Ubuntu 下的调试。

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 :

  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.

huangapple
  • 本文由 发表于 2014年12月29日 23:39:12
  • 转载请务必保留本文链接:https://go.coder-hub.com/27691782.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定