There are always challenges when it comes to debugging applications. Node.js' asynchronous workflows add an extra layer of complexity to this arduous process. Although there have been some updates made to the V8 engine in order to easily access asynchronous stack traces, most of the time, we just get errors on the main thread of our applications, which makes debugging a little bit difficult. As well, when our Node.js applications crash, we usually need to rely on some complicated CLI tooling to analyze the core dumps.

Julián Duque
Julián is a Lead Developer Advocate at Salesforce, with a strong focus on community, education, Node.js, and JavaScript. He loves sharing knowledge and empowering others to become better developers.
He spends most of his free time by playing with music instruments, playing RPG video games and as a DM (Dungeon Master) at online Dungeons & Dragons campaigns.
Let It Crash: Best Practices for Handling Node.js Errors on Shutdown
This blog post is adapted from a talk given by Julián Duque at NodeConf EU 2019 titled "Let it crash!."
Before coming to Heroku, I did some consulting work as a Node.js solutions architect. My job was to visit various companies and make sure that they were successful in designing production-ready Node applications. Unfortunately, I witnessed many different problems when it came to error handling, especially on process shutdown. When an error occurred, there was often not enough visibility on why it happened, a lack of logging details, and bouts of downtime as applications attempted to recover from crashes.
Julián: Okay. So, as Brian said, my name is Julián Duque, it will be...
Subscribe to the full-text RSS feed for Julián Duque.