3 ms·
Time-travel debugging is miles better than the old way of placing breakpoints. For me, debugging with breakpoints was always a pain. I often skipped through stu
by SzamarCsacsi 7y ago
Time-travel debugging is miles better than the old way of placing breakpoints. For me, debugging with breakpoints was always a pain. I often skipped through stuff accidentally and had to start all over again from the beginning, or accidentally went inside some third-party library code that I did not intend to, or placed the breakpoint at the wrong spot. It was just slow and inconvenient, unlike React DevTools where you can see every change and step forward or backward, replay events and observe the state at various points without having to put watchers on every variable / expression.
- true_religion 7y agoTime travel debugging is Redux devtools, not React devtools.
- SzamarCsacsi 7y agoOh, you're right. Been working with Vue lately where the component and Vuex inspectors are packaged into one devtools, that's why I got confused.
- tigershark 7y agoYou can return back to the previous statements in any decent debugger instead of starting from scratch. And by default they don’t go inside third party libraries unless you specify that it’s what you want. What kind of debuggers were you using?
- oauea 7y ago> You can return back to the previous statements in any decent debugger That's a bit of a stretch. What debuggers are /you/ using?
- mcintyre1994 7y agoYou can move around the execution in the VS debugger - if you’re at a break point you can move execution earlier in that function etc. That’s the only debugger I’ve seen doing that though.
- seleniumBubbles 7y agoYou can also use the “restart stack frame” option in Chrome DevTools to move back to the beginning of any function currently being executed. So if you skip past something on accident, you can just restart the closest stack frame to bring you back.
- tigershark 7y agoVisual studio, rider, IntelliJ idea, eclipse, they can all do it, although the last two can only go to the last stack call instead of moving to the specific statement if I recall correctly.
- oauea 7y agoIntelliJ cannot step back to the previous statement as the JVM does not support this. Thus neither can Eclipse.
- tigershark 7y agoIt can discard the last stack frame, as I said in my edited comment.