Re:Show HN: Time travel debugger for web development
by mysterydip on Wednesday September 15, 2021 @12:40PM
(#28541315)
What I mean is coming up with a condition to make as a watch/breakpoint isn't always obvious. Especially with errors that happen "sometimes randomly".
[ Parent
| on HN ]
Re:Show HN: Time travel debugger for web development
by onionisafruit on Wednesday September 15, 2021 @12:47PM
(#28541394)
That’s exactly where replay should shine. Stick a breakpoint in your error handler, then rewind when it breaks.
Re:Show HN: Time travel debugger for web development
by jaril on Wednesday September 15, 2021 @12:53PM
(#28541478)
Actually it might be even easier — if your specific error shows up in the console, there's a handy rewind button right beside it :)
Re:Show HN: Time travel debugger for web development
by rubyist5eva on Wednesday September 15, 2021 @07:28PM
(#28545814)
If an error causes an exception there is an option to suspend execution when one is thrown.
Re:Show HN: Time travel debugger for web development
by zerd on Wednesday September 15, 2021 @11:13PM
(#28547529)
But typically it will throw an exception _after_ the interesting code happened. For instance it might throw a NullPointerException, but you want to know what set it to null in the first place. With breakpoints you have to suspend on exception, and then add additional breakpoints earlier in the code, and then rerun the code. With rewind you can just step backwards.