Chapter 4: How to Debug Node.js Scripts
Tutorials often describe debugging in the final chapters. This can be frustrating if you encounter a problem at the start of your coding journey—which you will. Software development is complex.
If you’re lucky, your code will crash with an obvious error message. If you’re unlucky, your application will carry on regardless but not generate the results you expect. If you’re really unlucky, everything will work fine until the first user to arrive discovers a catastrophic, disk-wiping bug.
Skip Ahead?
This is a long chapter that describes several debugging options. You can skip ahead to the “Exercise: Debugging webhello.js” section (near the end of the chapter) if you’d like to get going. That said, a little ...
Get Node.js: Novice to Ninja now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.