News for hackers. Stuff that matters.
Re:The unreasonable effectiveness of print debugging by wonnage on Sunday April 25, 2021 @12:01AM (#26930264)
The Chrome devtools make adding a logpoint as easy as setting a breakpoint. So instead of adding your print statement, and rebuilding the app you can do it live. I think this is strictly better as you still get to enjoy the mental exercise of deciding where to put the logpoint. Even better, you can run anything you want in a logpoint, my favorite is console.profile/profileEnd() to get a cpu profile between two lines of code.

There are no comments on this comment yet.