You should use the chrome debugger if you do any frontend js/ts work. /thread
console.log
is dead. The debugger saves my ass every time.
You don’t need to set up anything or even import it if your using Chrome. You just:
- Add
debugger;
anywhere in your code: (stick it behind anif
if you like!) - If you’re debugging on the fly, find your file in the
sources
tab and click “Add Breakpoint”.
Now you can really debug all those god damn rerenders.
(It can do a load of other cool things too like logging on global DOM events like on mousedown
. Here’s the docs.)