html tool

2018年4月16日星期一

go gdb diff


https://github.com/astaxie/build-web-application-with-golang/blob/master/zh/11.2.md

[popexizhi: gdb 太赞了,都可以debugger ,c++/py/go,看来要好好list了]

启动之后首先看看这个程序是不是可以运行起来,只要输入run命令回车后程序就开始运行,程序正常的话可以看到程序输出如下,和我们在命令行直接执行程序输出是一样的:
(gdb) run
Starting program: /home/xiemengjun/gdbfile 
Starting main
count: 0
count: 1
count: 2
count: 3
count: 4
count: 5
count: 6
count: 7
count: 8
count: 9
[LWP 2771 exited]
[Inferior 1 (process 2771) exited normally] 

没有评论:

发表评论