工具与资源github.com
Seer:Linux 上 GDB 的图形前端
Seer: A GUI front end to GDB for Linux
2022 — 2024,它一次次回到首页
黑点是上首页(≥ 50 分)的那次投稿,空心点是没冲上去的投稿,点越大分数越高。
导读
Seer 是一个开源的 GDB 图形化前端,为 Linux 上的 C/C++ 调试提供直观的 GUI 界面,支持断点、变量查看、结构体可视化等功能。该项目在 GitHub 上开源,曾两次登上 Hacker News 首页。
为什么经久不衰:GDB 命令行学习曲线陡峭,一个好用的 GUI 前端始终是刚需,而基于 GDB/MI 的前端开发难度大、可选项少,因此这类项目持续受到关注。
HN 评论精选
gdb 自带的 tui 模式已经够好,尤其适合 vim 用户
我会试试这个,但到目前为止还没找到比 gdb 自带 tui 模式更好的。对命令行 vim 用户来说它的好处是能在 .inputrc 里启用 readline 的 vi 编辑模式,可以用 jk 上下翻历史记录等。调试会往屏幕打印内容的程序时,关键技巧是用 refresh 命令/Ctrl+L 刷新乱掉的屏幕。装了合适的包后它还支持源码高亮。
cassepipe查看英文原文
Will try that one but so far I could not find better than gdb's tui mode. What's good about it if you're a command line vimmer is that it benefits from readline's vi editing mode if you say so in your .inputrc (although it's not as good as zsh's) So jk go up and down your history and other editing goodies. The only crucial piece of information to use it if you are debugging a program that prints stuff to the screen is the refresh command/Ctrl + L to refresh a garbled screen. It also has source code highlighting if you have the right package installed I believe (gnu source highlighting or something)
GDB/MI 接口坑很多,做 GDB GUI 前端非常痛苦
我也尝试做过一个 GDB GUI(尚未发布)。界面已经挺好看,基本功能也可用,但 GDB/MI 实在太难用:现有命令缺少基本信息,有些想查询的东西没有对应的 GDB/MI 命令,有些输出干脆是坏的(比如多个停止原因)。这几乎耗尽了我的热情。祝作者好运,看起来他们已经完成了大部分 GDB/MI 的工作,虽然主要靠子串匹配,可能没处理 GDB/MI 的各种边界情况。
dzaima查看英文原文
I've given a go at making a GDB GUI (not published anywhere currently). It's at a stage where it looks pretty nice, and is usable for a decent number of basic things, but GDB/MI is such a pain to work with (the existing commands often lack some basic info, some things you may want to query don't have GDB/MI commands, and some outputs are just completely broken (e.g. multiple stop reasons)) that it's sucked pretty much all enthusiasm I had for working on it. I wish the best of luck to the authors of this; it seems they've already done a majority of the GDB/MI work, albeit largely by substring searches, and likely not handling the tons of edge-cases GDB/MI gives.
提供官方的 GDB 前端汇总列表供参考
这里有一个使用 GDB 的前端的不完全列表:https://sourceware.org/gdb/wiki/GDB%20Front%20Ends
nixcraft查看英文原文
Here's a partial list of front ends using GDB https://sourceware.org/gdb/wiki/GDB%20Front%20Ends
关心结构体可视化能否像 DDD 那样跟随指针展开
我不太清楚的是 Struct Visualizer 窗口能否跟随指针、打开其他窗口查看其引用的结构体/类。我在 DDD 里经常用这个等价功能。
rjsw查看英文原文
One thing that isn't obvious to me is if the "Struct Visualizer" window can let you follow pointers and open other windows to view the struct/class that they reference. I have used the equivalent feature in DDD a lot.
历次讨论
同类还值得读
直接在浏览器中启动 Linux 内核
Boot a linux kernel right inside your browser.
Fabrice Bellard 的 JSLinux 页面,用 JavaScript 在浏览器里启动一个 Linux 内核,并提供一个可交互的终端环境。
工具与资源上首页 5 次 · 2011–2025bellard.orgHacker News 未公开功能与行为清单(2018)
A List of Hacker News's Undocumented Features and Behaviors (2018)
数据科学家 Max Woolf 整理的 Hacker News 未公开功能与行为清单,涵盖投票机制、排名算法、账号惩罚等社区运作细节。
工具与资源上首页 5 次 · 2019–2025github.comMapSCII:在终端中用盲文和 ASCII 渲染地图
MapSCII – Braille and ASCII map renderer for the console
MapSCII 是一个在命令行终端里渲染地图的开源工具,用盲文字符和 ASCII 字符把地理数据画成可交互浏览的字符地图。
工具与资源上首页 5 次 · 2017–2025github.com顶尖大学的免费在线课程
Free Online Courses from Top Universities
Open Culture 整理的一份免费在线课程合集,汇集了全球顶尖大学(如 MIT、斯坦福、耶鲁等)向公众开放的网络课程资源,涵盖音频、视频等多种形式。
工具与资源上首页 5 次 · 2010–2022openculture.com淘气字符串:容易引发用户输入问题的字符串清单
Naughty Strings: A list of strings likely to cause issues as user-input data
一个 GitHub 仓库,收录了大量容易让程序出问题的用户输入字符串,如特殊字符、emoji、SQL 注入片段、系统命令等,供开发者用于测试输入处理逻辑。
工具与资源上首页 4 次 · 2015–2020github.com