Maybe everybody already knows and I am late to the party but in case there is somebody who didn't or keeps forgetting like me: Javascript has a
debugger
statement.If you include it in your code and it gets hit, your browser will halt the execution and drop you into a debugger console you might be familiar with from other languages:
If you didn't know and exclusively relied on
console.log
to debug your web application—for example because NextJS still didn't include the fix to debug an app running in docker—this should blow your mind.