先安装gvim
1 | sudo apt install vim-gtk3 |
再下载最新clewn
1 | http://clewn.sourceforge.net |
比如clewn-1.15.tar.gz
1 2 3 4 5 6 7 | apt install libncurses-dev apt install libreadline-dev tar xaf clewn-1.15.tar.gz cd clewn-1.15 ./configure make make install |
获取要调试程序的pid,比如98747
1 | clewn -ga "-p 98747" |
在原命令行中打断点再继续,当被调试程序命中断点后,gvim中会同步源码到断点处。
refer to:
http://clewn.sourceforge.net/doc.html