Trigger Visual Studio Code Launch Program "Start Debugging" through terminal command

Viewed 280

I have a node.js application and I am trying to create a unix way to trigger Visual Studio Code Launch Program through terminal.

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "node",
            "request": "launch",
            "name": "Launch Program",
            "program": "${workspaceFolder}/dist/server.js",
            "outFiles": [
                "${workspaceFolder}/dist/**/*.js"
            ]
        }
    ]
}

I wanted to chain the terminal command to this;

npm run build && ?

0 Answers
Related