cgdb配置

Posted by DEVIN on Sun, Jun 18, 2023

1.安装

1git clone git://github.com/cgdb/cgdb.git
2cd cgdb
3./autogen.sh
4./configure --prefix=/usr/local
5make
6sudo make install
7
8# 报错解决方法
9sudo apt-get install automake libncurses5-dev flex texinfo libreadline-dev

2.配置

1vim ~/.cgdb/cgdbrc
2
3set ignorecaseset
4ts=4
5set wso=vertical
6set eld=shortarrow
7set hls
8map <F9> :until<cr>

3.快捷键

F5 - Send a run command to GDB. F6 - Send a continue command to GDB. F7 - Send a finish command to GDB. F8 - Send a next command to GDB. F10 - Send a step command to GDB.