O'Reilly logo

Developing a hapi Edge: A Rich Node.js Framework for Apps and Services by Foreword by Eran Hammer, Lloyd Benson, Daniel Bretoi, Van Nguyen, Wyatt Preul

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

A debugged program is one for which you have not yet found the conditions that make it fail.

-- Jerry Ogdin

In the last chapter, we learned a lot about how to test hapi applications and how to write unit tests. In this chapter, we’ll discover how to debug our hapi applications using some advanced tools.

Debugging in Node.js has always been a source of pain for many developers. There is still a lack of great tooling to help developers with debugging Node.js across platforms and throughout an applications full lifecycle. While tools like DTrace exist, not all Node.js deployments have the opportunity to use it. Joyent and other companies have done a great job at documenting how to debug a Node.js application. In the hapi ...

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