IntelliJ IDEA go-lang-idea-plugin在Ubuntu下的Alpha调试 [英] IntelliJ IDEA go-lang-idea-plugin Alpha debugging under Ubuntu

查看:260
本文介绍了IntelliJ IDEA go-lang-idea-plugin在Ubuntu下的Alpha调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用IntelliJ Idea 14.0.2调试Go 1.4,以及从 http://github-intellij-plugin.appspot.com /go-lang-plugin-org/go-lang-idea-plugin/alpha.xml 。如 https://github.com中所述/ go-lang-plugin-org / go-lang-idea-plugin / pull / 588 这应该工作。



插件可以正常运行Hello world,但是我的Debug-Button是灰色的。我已将gdb更新到版本6.8.1,版本6.8和6.7.7也不起作用。这是我的调试配置:



我失踪了什么?我需要一个特定的gdb版本或其他地方的问题吗?或者是因为我使用Go 1.4吗?

解决方案

解决方案是:



1)转到编辑配置=>运行



2)取消选中运行前生成



3)检查运行前生成



4)检查启用调试(在运行前重新生成两次之前为灰色) / p>

所以这是一个奇怪的UI问题。


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?

解决方案

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.

这篇关于IntelliJ IDEA go-lang-idea-plugin在Ubuntu下的Alpha调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆