O'Reilly logo

Pro Node.js for Developers by Colin J. Ihrig

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 15

image

Logging, Debugging, and Testing

Production code, in any language, must have a certain polish that is lacking in toy or academic programs. This chapter explores the topics of logging, debugging, and testing, which will increase code quality while reducing the time required to diagnose and fix bugs. By logging useful information and errors, you can more easily fix bugs once they appear. A debugger is a critical tool in any programmer’s toolbelt, as it allows code to be explored with a fine-toothed comb, inspecting variables and finding bugs. Finally, testing is the process of systematically identifying bugs in computer programs. This ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required