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 ...

Get Pro Node.js for Developers 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.