TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

GF: native UI for GDB on Linux with Python and C++ extensions

3 点作者 seansh超过 1 年前

2 条评论

epasveer超过 1 年前
Hi (Seer author here).<p>&gt; seer: I think it missed #3 and #4.<p>Seer has the concept of &#x27;projects&#x27;. A project can hold many settings, including breakpoints, watchpoints, etc... It is a manual thing so save a project and load a project. Not sure what you mean by &#x27;automatically load&#x27;.<p>Seer has a visualizer to view a struct and expand it, updating after each step&#x2F;next.<p>A recent change (in the project&#x27;s github &quot;main&quot;) now has struct visualization in the Variable Logger, Tracker, and Local Variables views. All expandable.
seansh超过 1 年前
I&#x27;ve searched for countless hours trying to find a C debugger, or a frontend to GDB, on Linux. There are so many options and yet so few I would actually use. It seems like every one of them is abandoned halfway.<p>My requirements aren&#x27;t that esoteric and really have a hard time imagining how anybody debugs C code without them.<p>Every debugger I tried got these ones right: breakpoints, step in&#x2F;over&#x2F;out, continue&#x2F;pause, and stack traces.<p>But these are the ones I really need and almost every debugger is missing at least one:<p>1) show the code that is being debugged, not one line at a time but the whole file so I can see the context and scroll up and down.<p>2) arbitrary watch expressions view that automatically and immediately update on every step.<p>3) able to expand and collapse structs and pointers in the expressions view and have them stay that way when they update.<p>4) remember my breakpoints and watch expressions per project and automatically load them.<p>And some nice haves:<p>5) configurable window layout.<p>6) custom display&#x2F;format of custom types for the watch expressions.<p>I have tried the following and many more but ultimately gave up on them:<p>- gdb&#x27;s builtin tui: it misses almost all the above except #1.<p>- various gdb scripts (pwndb, gef, peda): same as gdb&#x27;s builtin tui.<p>- ddd: extremely hard to use UI.<p>- seer: I think it missed #3 and #4.<p>- xxgdb<p>- kdbg: I remember it had many bugs and couldn&#x27;t properly restart&#x2F;reload the program.<p>- gdbgui<p>- gdb-frontend<p>- emacs GUD: buggy, hard to use, expressions go in speedbar in another frame which is just so weird in terms of UX.<p>RemedyBG is pretty nice and I think covers everything but it&#x27;s Windows only.<p>Currently, gf is the only one I found that matches my needs.<p>I hope this is helpful. I&#x27;m curious how everybody else approaches debugging C on Linux.