gdb调试golang的问题
在eclipse开发go想要单点调试debug,go环境和gdb都配好了
main.go
package main
import (
"fmt"
)
func main(){
fmt.Println("我是第一步")
Fun()
}
func Fun(){
fmt.Println("我是第二步")
}
右键debug,出现gdb消息提示
输入list想要显示代码,报错如下:
list
&"list\n"
&"No symbol table is loaded. Use the \"file\" command.\n"
^error,msg="No symbol table is loaded. Use the \"file\" command."
(gdb)