1.0 KiB
1.0 KiB
title, shortTitle, type, tags, author, cover, excerpt, firstSeen, lastUpdated
| title | shortTitle | type | tags | author | cover | excerpt | firstSeen | lastUpdated |
|---|---|---|---|---|---|---|---|---|
| Tip: Debugging Node.js using Chrome Developer Tools | Debug Node.js with Chrome Developer Tools | tip | javascript,node,debugging | chalarangelo | blog_images/bug.jpg | Did you know you can use Chrome Developer Tools to debug your Node.js code? Find out how in this short guide. | 2020-07-15T16:10:13+03:00 | 2021-06-12T19:30:41+03:00 |
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.0or newer, if you don't already have it installed on your machine. - Run node with the
--inspect-brkflag (e.g.node --inspect-brk index.js). - Open
about:inspectin a new tab in Chrome. You should see something like the screenshot below. - Click
Open dedicated DevTools for Nodeto open a new window connected to your Node.js instance. - Use the Developer Tools to debug your Node.js application!
