【问题标题】:Goland ssh debug mode fail: executable doesn't containt debug informationGoland ssh 调试模式失败:可执行文件不包含调试信息
【发布时间】:2022-07-16 16:27:58
【问题描述】:

我使用 Goland ssh 编写代码。我在我的项目中使用调试模式失败,断点变成灰色的交叉圆圈并报告错误“可执行文件不包含调试信息”。 The error information is here.

This is the Run/Debug Configuration of my project

但是,我仍然可以使用调试模式并在测试文件中设置正常断点。

【问题讨论】:

  • 有人遇到同样的问题吗?请给我一些提示以解决它!谢谢!!
  • 第一次添加断点时,终端显示此错误消息。 "error layer=debugger error loading binary "/lib/x86_64-linux-gnu/libpthread.so.0": could not parse .eh_frame section: pointer encoding not supported 0x9b at 0x12e8"
  • 你如何开始你的申请?

标签: go debugging ide goland


【解决方案1】:

我刚才遇到了完全相同的问题。

最后我发现原因是我设置断点的函数没有在repo中被调用。

它被另一个repo调用,所以编译和调试调用这个函数的repo可以解决这个问题。

错误 "error layer=debugger error loading binary "/lib/x86_64-linux-gnu/libpthread.so.0": could not parse .eh_frame section: pointer encoding not supported 0x9b at 0x12e8" 仍然存在,但断点不会变成灰色的交叉圆圈。

【讨论】:

    【解决方案2】:

    请看https://youtrack.jetbrains.com/issue/GO-13005。 Next 2022.2 nightly build bundles 不会产生错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多