LiteIDE调试消息:未指定可执行文件,请使用目标执行文件。

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

LiteIDE debug message No executable specified use target exec

问题

尝试在LightIde中进行调试。然而,当我开始调试时,出现以下控制台消息:

(gdb)
10000015^error,msg="未加载符号表。请使用“file”命令。"
(gdb)
10000016^error,msg="未指定可执行文件,请使用“target exec”。"
(gdb)

并且无法开始调试。缺少了什么?

英文:

Try to debug In LightIde, . However, when I start debug, the following console message appear

(gdb)
10000015^error,msg="No symbol table is loaded. Use the \"file\" command."
(gdb)
10000016^error,msg="No executable specified, use `target exec'."
(gdb)

And it does not start debug.
What is missing?

答案1

得分: 1

这取决于你的配置:在LiteIDE中打开项目xxx.go,编辑工具栏构建配置-> BUILDARGS(类似于-g标志)。

例如,你可以尝试(如此问题中所示)-gcflags "-N -l"。如此线程中所提到的,

如果BUILDARGS设置包括:-ldflags "-s",则不会加载调试信息。

英文:

It depends on your config: liteide - open project xxx.go , edit toolbar build config -> BUILDARGS (like the -g flag).

For instance, you can try (as in this issue) -gcflags "-N -l". As mentioned in this thread,

> if BUILDARGS setup includes: -ldflags "-s", no debug info is loaded.

huangapple
  • 本文由 发表于 2014年8月1日 17:31:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/25077104.html
匿名

发表评论

匿名网友

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

确定