Debugging JavaScript running in the browser is made easy by the powerful “DevTools” integrated in Chrome and Firefox browsers.
The project number 1 this week ndb from the Chrome team aims to provide the same experience but for JavaScript running in Node.js.
There were projects with similar goals in the past (like node-inspector or iron-node).
Since 2016 there is already a built-in debugging feature in Node.js, see this article from Paul Irish.
Also it’s possible to debug right from the editor and do Node.js Debugging in VS Code.
However ndb goes further by using Puppeteer, a library to control Chrome over the DevTools protocol, released one year ago and very trendy over the last months.
ndb may become the de-facto debugging tool for node.js very soon.
Any question or feedback? Reach us on GitHub.
Best of JavaScript is a project created by Michael Rambeau, made in Osaka, Japan.