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