目前我自己最喜欢的还是 ddd 、 gdbgui 和 vim-vebugger插件或vimgdb插件 三种。

You could try using Insight a graphical front-end for gdb written by Red Hat Or if you use GNOME desktop environment, you can also try Nemiver.

kdbg is a graphical user interface to gdb, the GNU debugger.

ddd is a graphical front-end to gdb that is pretty nice. One of the down sides is a classic X interface, but I seem to recall it being pretty intuitive.

vim-vebugger 插件或 vimgdb 插件,也可以试试。

推荐使用 nemiver。insight 是 redhat 下的,ubuntu里没有更新。 ddd也不错。看自己喜好。

更推荐使用 gdb dashboard 或者 gdbgui,前者是对字符终端的重定向组合,后者是python实现的web方式的调试前端(我现在正在用的,在我的机器上,用chrome浏览器才能调式)。

https://github.com/cyrus-and/gdb-dashboard

https://github.com/cs01/gdbgui                   我现在正在用的(在我的机器上,用chrome浏览器才能调式)

https://github.com/snare/voltron                  这个可能比 gdb dashboard 还好

除了gdb dashboard之外,以下网址还提供了其它的front end(包括给gdb dashboard上色):

https://stackoverflow.com/questions/209534/how-to-highlight-and-color-gdb-output-during-interactive-debugging/522192

Nemiver的安装:

基于Debian发行版,它的安装时非常直接简单,如下:

$ sudo apt-get install nemiver

在Fedora中安装如下:

$ sudo yum install nemiver 

在Arch Linux中安装如下:

$ sudo pacman -S nemiver 

Nemiver 是一款基于 GTK+ 的用于C/C++程序的图形化的独立调试器,它以GDB作为其后端。最令人赞赏的是其速度和稳定性,Nemiver是一个非常可靠,具备许多优点的调试工具。最令人欣慰的是,它能够很好地与GNOME环境像结合。

kdbg简单使用:

ubuntu下 直接 sudo apt-get install kdbg 即可安装.

若启动后出现 MNG error 11: Function is invalid at this point; chunk MHDR; subcode 0:0 错误, 那么就删除 /usr/share/kde4/apps/kdbg/icons/hicolor/22x22/actions/pulse.mng 这个文件就好了.

界面比较友好. 调试方法很简单:

1.首先g++ -g file.cpp 或  g++ --debug file.cpp  得到文件a.out

2.运行Kdbg选择 File->Excutable 再选中a.out 这个文件,调试代码会自动载入.

3.鼠标点调试代码最左边点空白处,变红色则设置了断点,

4.按F5开始调试 F10单步 F6跳出 F7到鼠标 F8跟进。View->Locals可看变量数据。

ddd的问题之一:       (为什么我的 ddd 需要 root 权限才能显示源码,即便 sudo 也不能显示源码,只有 su 之后在root下才能显示源码?

运行DDD调试器时,出现卡死现象,看软件状态,发现"waiting until GDB gets ready"。 解决办法:

用vim编辑文件 ~/.ddd/init,  将   set extended-prompt not set\n\   这行 改成: set extended-prompt (gdb) \n\       问题解决。

1、gdb 调式子进程:

set follow-fork-mode child

2、gdb打印预定义的宏macro的方法:

必须同时使用以下几个编译选项才能打印:

-g:

Produce debugging information in the operating system's native format (stabs, COFF, XCOFF, or DWARF 2). GDB can work with this debugging information. On most systems that use stabs format, -g enables use of extra debugging information that only GDB can use; this extra information makes debugging work better in GDB but probably makes other debuggers crash or refuse to read the program. If you want to control for certain whether to generate the extra information, use -gstabs+, -gstabs, -gxcoff+, -gxcoff, or -gvms (see below).

-ggdb:

Produce debugging information for use by GDB. This means to use the most expressive format available (DWARF 2, stabs, or the native format if neither of those are supported), including GDB extensions if at all possible.

-gvmslevel:   (示例: -g3, 要打印macro,请使用 -g3

Request debugging information and also use level to specify how much information. The default level is 2. Level 0 produces no debug information at all. Thus, -g0 negates -g.

Level 3 includes extra information, such as all the macro definitions present in the program. Some debuggers support macro expansion when you use -g3.

然后在gdb中使用:

info macro YOUR_MACRO 或者 macro expand YOUR_MACRO

查看相应的macro。

优秀的gdb图形化前端调试器相关推荐

  1. 如何一起破解图形化Python调试器

    15分钟内从零调试 (Zero-to-Debugging in 15 mins) You don't realize the value of a debugger until you're stuc ...

  2. 十款优秀的MySQL图形化界面

    绝大多数的关系数据库都明显不同于MS Access,它们都有两个截然不同的部分:后端作为数据仓库,前端作为用于数据组件通信的用户界面.这种设计非常巧妙,它并行处理两层编程模型,将数据层从用户界面中分离 ...

  3. gdb图形化调试工具总结

    gdb除了命令行方式等的调试之外,还有图形化的调试工具,下面列举一些供参考 1:insight 2: ddd 3: kgdb 4: xxgdb 其它的工具欢迎补充

  4. 优秀开发者必备技能包:Python调试器

    作者 | Roky0429 来源  | Python空间(ID:Devtogether) 人工智能的现状及今后发展趋势如何?  https://edu.csdn.net/topic/ai30?utm_ ...

  5. AriaNg | 一款基于aria2高速图形化界面下载器

    为网盘下载提速! 官网地址:https://github.com/Xmader/aria-ng-gui 首先我们直接下载编译好的软件到本地 解压完成之后直接双击运行 打开软件之后,我们点击到aria2 ...

  6. 物联网打工人必备:LiteOS Studio图形化调测能力

    摘要:本文会给大家介绍下LiteOS Studio的调测的几个知识点,包括: 调测配置,监视变量,反汇编代码同步展示,数值进制切换,跨平台编译调测,Qemu模拟器调测,多核调测,远程设备调测等. 掌握 ...

  7. 开源项目-基于Intel VT技术的Linux内核调试器

    本开源项目将硬件虚拟化技术应用在内核调试器上,使内核调试器成为VMM,将操作系统置于虚拟机中运行,即操作系统成为GuestOS,以这样的一种形式进行调试,最主要的好处就是调试器对操作系统完全透明.如下 ...

  8. Linux Ubuntu22.04 安装synaptic包图形化管理工具和cairo-dock(最美观的Linux dock)

    安装一个新立得软件包管理器   新立得是dpkg命令的图形化前端能够在图形界面内完成LINUX系统软件的搜寻.安装和删除,相当于终端里的apt命令.如果没有预装,bash输入 sudo apt-get ...

  9. ubuntu/linux系统知识(17)图形化的包管理工具Synaptic

    文章目录 Synaptic 软件包管理器是什么? 为什么你要使用像 Synaptic 软件包管理器这样的 "古老的" 软件? Synaptic 软件包管理器的功能 如何在 Ubun ...

最新文章

  1. AliCloudDB for redis应用场景之存储最新N条聊天记录
  2. Django xadmin 后台自定义action 动作
  3. 论“性能需求分析”系列专题(一)之 性能需求剖析
  4. 【易网库】周年庆幸运大抽奖, 有机会获3年免费主机空间
  5. [蓝桥杯2019初赛]特别数的和-枚举
  6. 【牛客 - 318F】关于我转生变成史莱姆这档事(二分,搜索)
  7. 怎么判断到了月初_双春年与无春年怎么区分?2021年是寡妇年吗?
  8. animition动画的加入
  9. 解决使用elementUI框架el-upload跨域上传时session丢失问题
  10. 抛弃jQuery:DOM API之操作元素
  11. 2.2 CSS3基本语法 + 选择器
  12. 直播防盗链,域名设置
  13. Python3 使用psycopg2模块 批量写入数据到PostgreSQL数据库(最强输出速度,单机数据库3000W数据写入最多180秒)
  14. 酒店客房管理系统(C语言)
  15. 一文彻底搞懂 顶背离 底背离 (图解)
  16. socket closed
  17. 怎么在服务器上安装SSL证书?服务器证书安装配置指南
  18. 哥谭第一季/全集Gotham迅雷下载
  19. JAVA是解释型语言还是编译型语言
  20. imac15款和17款区别_5K屏2019款iMac轻体验:优缺点都很明显

热门文章

  1. TensorFlow2.0(十一)--理解LSTM网络
  2. 入门机器学习(十八)--异常检测(Anomaly Detection)
  3. 最新基于adt-bundle-windows-x86的android开发环境搭建
  4. abap mm后台表_如何查找SAP Fiori UI上某个字段对应的底层数据库表
  5. 6-1 稀疏矩阵求和 (70 分)
  6. 7-5 图形继承与多态 (50 分)
  7. 2021高考理综单科成绩查询,2021全国各省市高考总分及各科分数 分值是多少
  8. oracle手动注册数据库,Oracle 11g手动创建数据库(Linux平台)
  9. C语言手写自定义三维数组
  10. CDH spark2切换成anaconda3的问题