Tip: Debugging Node.js using Chrome Developer Tools
JavaScript, Node, Debugging · Jun 12, 2021

Node.js can be debugged using Chrome Developer Tools since v6.3.0
. Here's a quick guide on how to do this:
- Download and install Node.js
v6.3.0
or newer, if you don't already have it installed on your machine. - Run node with the
--inspect-brk
flag (e.g.node --inspect-brk index.js
). - Open
about:inspect
in a new tab in Chrome. You should see something like the screenshot below. - Click
Open dedicated DevTools for Node
to open a new window connected to your Node.js instance. - Use the Developer Tools to debug your Node.js application!

Written by Angelos Chalaris
I'm Angelos Chalaris, a JavaScript software engineer, based in Athens, Greece. The best snippets from my coding adventures are published here to help others learn to code.
If you want to keep in touch, follow me on GitHub.