尝试在LightIde中调试。但是,当我开始调试时,出现以下控制台消息
(gdb)
10000015^error,msg="No symbol table is loaded. Use the "file" command."
(gdb)
10000016^error,msg="No executable specified, use `target exec'."
(gdb)
不启动调试。
缺少了什么?
这取决于你的config: liteide - open project xxx。编辑工具栏build config -> BUILDARGS
(就像-g
标志一样)。
例如,您可以尝试(如在这个问题)-gcflags "-N -l"
。如本帖所述,
如果
BUILDARGS
setup包含:-ldflags "-s"
,则不加载调试信息。