| { |
| // Use IntelliSense to learn about possible attributes. |
| // Hover to view descriptions of existing attributes. |
| // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 |
| "version": "0.2.0", |
| "configurations": [ |
| { |
| "type": "pwa-node", |
| "request": "launch", |
| "attachSimplePort": 0, // instead of "port", makes it auto-select a free debug port |
| "killBehavior": "polite", |
| "name": "wskdebug", |
| "runtimeExecutable": "wskdebug", |
| "args": [ |
| "wskdebug-examples/webaction", |
| "${workspaceFolder}/webaction.js", |
| "--cleanup", // remove helper actions on shutdown (takes longer) |
| "-l", // enable live-reload |
| "-v" // log parameters and results |
| ], |
| "localRoot": "${workspaceFolder}", |
| "remoteRoot": "/code", |
| "outputCapture": "std" |
| }, |
| { |
| "type": "node", |
| "request": "launch", |
| "name": "wskdebug (VS Code <= 1.47)", |
| "runtimeExecutable": "wskdebug", |
| "args": [ |
| "wskdebug-examples/webaction", |
| "${workspaceFolder}/webaction.js", |
| "-l", |
| "-v" |
| ], |
| "localRoot": "${workspaceFolder}", |
| "remoteRoot": "/code", |
| "outputCapture": "std" |
| }, |
| { |
| "type": "pwa-node", |
| "request": "launch", |
| "attachSimplePort": 0, |
| "killBehavior": "polite", |
| "name": "wskdebug ngrok", |
| "runtimeExecutable": "wskdebug", |
| "args": [ |
| "wskdebug-examples/webaction", |
| "${workspaceFolder}/webaction.js", |
| "-l", |
| "--ngrok" |
| ], |
| "localRoot": "${workspaceFolder}", |
| "remoteRoot": "/code", |
| "outputCapture": "std" |
| }, |
| { |
| "type": "pwa-node", |
| "request": "launch", |
| "attachSimplePort": 0, |
| "killBehavior": "polite", |
| "name": "wskdebug with build", |
| "runtimeExecutable": "wskdebug", |
| "args": [ |
| "wskdebug-examples/webaction", |
| "${workspaceFolder}/webaction.js", |
| "-l", |
| "--on-build", "mkdir -p build/; cp webaction.js build/", |
| "--build-path", "build/webaction.js", |
| "--cleanup" |
| ], |
| "localRoot": "${workspaceFolder}", |
| "remoteRoot": "/code", |
| "outputCapture": "std" |
| }, |
| { |
| "type": "pwa-node", |
| "request": "launch", |
| "attachSimplePort": 0, |
| "killBehavior": "polite", |
| "name": "wskdebug with WSK_PACKAGE", |
| "runtimeExecutable": "wskdebug", |
| "args": [ |
| "webaction" |
| ], |
| "localRoot": "${workspaceFolder}", |
| "remoteRoot": "/code", |
| "outputCapture": "std", |
| "envFile": "${workspaceFolder}/.env" |
| } |
| ] |
| } |