by celticjames · 13y ago · 0 comments
The way a lot of bugs are eventually solved is not by asking what caused them, but when they started. It's often the regression testers who find the source. You keep going back through the nightly releases until you find one that doesn't exhibit the bug. At that point you go to the commit logs and there is your problem.
Given how much memory, disk space, etc. we have these days it's getting to the point that we should really have the ability to dump a program's state and all actions from starting the program to finishing it and then fast forward/rewind the actions of the user. Inspect all the locals, see what's actually happening. Set a loop over 30 seconds. Bugs would be a lot easier to find and recreate.
A bit like lightbox, but for debuggers!
It's just that no-one's done it yet and no programming language is really written to do it.
Great quote from that page, "The ODB is as close to a silver bullet as you can get. Why don't people use it?"
And I know the mozilla guys sometimes use chronicle-recorder to fully record a running application for debugging. (It was referenced in a bug I filed.)
http://code.google.com/p/chronicle-recorder/It is billed as "DVR for Java."
Given a program from 20 years ago this is definitely possible. Given a program from today, it becomes an intractable problem quite quickly.
> It's just that no-one's done it yet and no programming language is really written to do it.
Live programming might get you what you want, but it won't be through brute force tracing of everything. Better to focus on deterministic replay then its quite easy to rebuild the contexts we need to fake it.
Also, there are important things that you just can't log for legal or ethical reasons. For example, no user of a browser would be happy to know that the current URL they were viewing or their POST data was sent back to a browser developer (or even saved in a local file) without their explicit permission.