

It’s useful, but honestly, unless you’ve been programming for a while, it’s not exactly the easiest thing to decipher.


There’s a number of ways to debug your misbehaving Node.js program, I’ve listed them out below with links to learn more if you so desire. Let’s go over the debugging options and then I’ll show you the easiest way I’ve come across to debug Node.js in my own development. You just can’t, and it stinks.īut Node is possible to debug, it just takes a little more elbow grease. Unlike JavaScript in the browser, or Java with a powerful IDE like IntelliJ, you can’t just set breakpoints everywhere, refresh the page or restart the compiler and slowly walk through the code examining objects, evaluating functions and finding the mutation or missing variable, etc. If you’ve ever had the pleasure of writing code for a Node.js project, you know what I’m talking about when I say debugging it to figure out what’s going wrong isn’t the easiest thing.
