Re:The Modern Java Platform – 2021 Edition
by zaphar on Wednesday March 17, 2021 @09:23AM
(#26490833)
Print debugging results in a printed log of this happened, then this happened, ..., and finally this happened. And you can trivially rewind it and do random looks at the log. Debuggers have difficulty giving you this much context at your fingertips. The downside is that if you missed one of those critical "this happened" items in your log you have to rerun. But debuggers have the same problem. If you missed a breakpoint you have to re-run.
[ Parent
| on HN ]
Re:The Modern Java Platform – 2021 Edition
by dropofwill on Wednesday March 17, 2021 @09:52AM
(#26491223)
Intellij’s debugger has a ‘drop frame’ feature that i use a lot for going back in time when i missed something.
It also shows you the state of variables at various points alongside the code, which is basically the context i want to log anyways.