Skip to Main Content
Node.js in Action
book

Node.js in Action

by TJ Holowaychuk, Nathan Rajlich, Mike Cantelon, Marc Harter
October 2013
Intermediate to advanced content levelIntermediate to advanced
416 pages
13h 2m
English
Manning Publications
Content preview from Node.js in Action

Appendix B. Debugging Node

During development, and especially while learning a new language or framework, debugging tools and techniques can be helpful. In this appendix, you’ll learn a number of ways to figure out exactly what’s going on with your Node application code.

B.1. Analyzing code with JSHint

Syntax- and scope-related errors are a common pitfall of development. The first line of defense, when attempting to determine the root of an application problem, is to look at the code. If you look at the source code, however, and don’t immediately see a problem, another thing worth doing is running a utility to check your source code for problems.

JSHint is one such utility. It can alert you to show-stopping errors, such as functions called ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Get Programming with Node.js

Get Programming with Node.js

Jon Wexler
Beginning Node.js

Beginning Node.js

Basarat Ali Syed
Node.js in Action, Second Edition

Node.js in Action, Second Edition

Bradley Meck, Nathan Rajlich, TJ Holowaychuk, Mike Cantelon, Tim Oxley, Alex Young

Publisher Resources

ISBN: 9781617290572Publisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link