VS Code





VS Code seems to be the most popular nodejs debugger.
Download VS code
Install ES Lint

Open project directory
click debug tab on left hand side
new configuration
Node.js launch program




npm install --save-dev nodemon

{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "nodemon",
"runtimeExecutable": "${workspaceFolder}/node_modules/nodemon/bin/nodemon.js",
"program": "${workspaceFolder}/bin/www.js",
"restart": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"env": {
"DEBUG": "express:*",
}
}]
}



















Comments