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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Reverse Debugging with GDB

76 点作者 mrmaddog超过 11 年前

7 条评论

coldcode超过 11 年前
Reverse debugging sounds like putting bugs in. We do that every day already.
fijal超过 11 年前
We (PyPy developers) tried this and it's unusably slow. I don't know how they got that slow, but it takes a bit forever to execute 10mln instructions. We ended up using UndoDB gdb wrapper, which runs slower than they advertise (+- the same speed as valgrind so say 30x give or take), but is a lot more usable. They had stability problems in the past, but with the recent versions, we're able to run stuff like complex python programs on top of pypy on top of UndoDB, which is very impressive. Very useful for hard GC bugs.
bravura超过 11 年前
I have a more modest request:<p>Could debuggers please store the code paths and variable values, over the last 50 executions or perhaps the test suite (deterministic)? This is particularly useful for understanding someone else&#x27;s code.<p>[edit: a context-free version of reverse debugging]<p>I&#x27;ve recently been enjoying using IntelliJ for Scala, because it can show me types, and jump to type declarations, and usages.<p>However, I still have to do a bunch of print debugging when trying to understand someone else&#x27;s code, because I want to understand what values certain variables take. This is a pain using a compiler as slow as Scala.<p>Something that captured relevant information, so that it would be easier + faster to do print debugging against previous code runs or the test suite, would be awesome.
评论 #6695024 未加载
评论 #6696514 未加载
neur0mancer超过 11 年前
I tried it. Unfortunately, it is very slow.
评论 #6693307 未加载
评论 #6694022 未加载
Groxx超过 11 年前
For Java, if it still runs: <a href="http://www.lambdacs.com/debugger/" rel="nofollow">http:&#x2F;&#x2F;www.lambdacs.com&#x2F;debugger&#x2F;</a><p>I really like the idea. Never knew GDB had implemented it (thanks for the link!). I&#x27;ll <i>definitely</i> try this out :)
martin_超过 11 年前
I&#x27;m assuming this wasn&#x27;t a big hit as little as been mentioned about it since its release in 2009?
评论 #6693465 未加载
peterhajas超过 11 年前
Cool! Does `lldb` have similar functionality?