Visual Studio Code - Node.js app

About

Node.js app development in VsCode

Visual Studio Code support natively Node.js app.

Debug

Example of Launch.json file to debug an Node script

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceRoot}/app.js"
        }
    ]
}

where app.js is a node.js app. Example:

var name = "nicolas";
console.log(name)

Documentation / Reference


Powered by ComboStrap