![nodejs inspector nodejs inspector](https://i.stack.imgur.com/S5o6u.png)
To enable the feature, either use the Toggle Auto Attach command from the Command Palette ( ⇧⌘P (Windows, Linux Ctrl+Shift+P)) or, if it's already activated, use the Auto Attach Status bar item. If the Auto Attach feature is enabled, the Node debugger automatically attaches to certain Node.js processes that have been launched from VS Code's Integrated Terminal.
![nodejs inspector nodejs inspector](https://miro.medium.com/max/1200/1*UnHlBEwQ1tF6alTjEGdEYA.png)
There are a few ways you can debug your Node.js programs in VS Code:
#NODEJS INSPECTOR CODE#
Setting up a project for Node.js debugging is straightforward with VS Code providing appropriate launch configuration defaults and snippets.
![nodejs inspector nodejs inspector](https://img2018.cnblogs.com/blog/740516/202002/740516-20200208234030403-1925820216.png)
The Visual Studio Code editor has built-in debugging support for the Node.js runtime and can debug JavaScript, TypeScript, and many other languages that are transpiled into JavaScript.
![nodejs inspector nodejs inspector](https://img2018.cnblogs.com/blog/740516/202002/740516-20200208233703287-993021664.png)