NodeJS express app debugger at VS Code

Debugging is a big part of application development. Only printing console may not give you the best inside. Let's create a debugger that give's you inside of your application.


Click on "Debug & run" menu at left side of VS code then create a launch file and configure this file in order to debug your application. 

Install nodemon as globally: npm install nodemon -g


{
    "name": "Launch Program",
    "program": "${workspaceFolder}/src/index.js",
    "request": "launch",
    "skipFiles": [
        "<node_internals>/**"
    ],
    "type": "node",
    "restart": true,
    "runtimeExecutable": "nodemon",
    "console": "integratedTerminal"
}

Post a Comment

0 Comments