Bugs are part of our day to day as developers, but our job is to minimize them as much as possible. The hardest part is always identifying where the bug comes from. Debugging is one of those skills that’s core to the activity of a programmer.
Table of contents
How do you deal with bugs?Figuring out where the error could beYour first contact with console.log()Inspecting objectsJSON.stringify()Iterate the properties using a loopUsing the browser debuggerBreakpointsScopeWatch variables and expressionsResume the executionEdit scriptsInspect the call stackPrint the stack traceLogging different error levelsPreserve logs during navigationGrouping console messagesBlackbox scriptsUse the browser devtools to debug Node.js1 Comment
Sort: