LiteIDE调试Go语言需要安装GDB
1.先解决brew不能使用的问题
cd /usr/local/Library
git pull origin master
brew update
brew prune
brew doctor
参考:http://vancelucas.com/blog/fixing-homebrew-on-osx-yosemite-10-10/
2.用Homebrew 安装 gdb
(1)# brew tap homebrew/dupes
(2)
# brew install gdb
(3)有可能提示:
Warning: No developer tools installed.You should install the Command Line Tools.
Run `xcode-select --install` to install them.
那就先安装the Command Line Tools.
# xcode-select --install
3.给gdb制作证书并授权:http://plotcup.com/a/129
如果没有证书,会出现如下提示:
(gdb) run
Starting program: /Users/wenke/go/src/gdb/main
Unable to find Mach task port for process-id 18420: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
最后,无图无真相
本文介绍了如何在LiteIDE中配置GDB以调试Go语言程序。首先解决Homebrew在OS X Yosemite上的问题,然后通过Homebrew安装GDB,并解决安装过程中可能遇到的警告。最后,为GDB创建证书并授权,确保调试过程正常运行。
1836

被折叠的 条评论
为什么被折叠?



