NiM is the BEST way to debug Node.js.
Also, please help by sharing NiM with one of the share links on this page, and/or by giving DigitalOcean a try with the following link which will give you a $100 credit!
How to reduce your DigitalOcean cost using BrakeCODE tool
Also available as a Microsoft Edge Add-On
NiM and Node.js Diagnostic Reports with Brakecode
Check out the brakecode npm package 📦that works with NiM and read about it here https://june07.com/nodejs-diagnostic-reports. You will also find a short tutorial on how to use NiM with Brakecode here https://blog.brakecode.com/nodejs-diagnostic-reports.
NiM Extension for VSCode
Check out the VSCode Extension that works with NiM and read about it here Absolute Simplest Node.js Debugging - VSCode/DevTools.