blob: c952cf36748d65cd0f3b86483de2e062a39f938b [file] [log] [blame]
{
// 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": [
{
"name": "wskdebug",
"type": "pwa-node",
"request": "launch",
"attachSimplePort": 0, // instead of "port", makes it auto-select a free debug port
"killBehavior": "polite",
"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"
},
{
"name": "wskdebug (VS Code <= 1.47)",
"type": "node",
"request": "launch",
"runtimeExecutable": "wskdebug",
"args": [
"wskdebug-examples/webaction",
"${workspaceFolder}/webaction.js",
"-l",
"-v"
],
"localRoot": "${workspaceFolder}",
"remoteRoot": "/code",
"outputCapture": "std"
},
{
"name": "wskdebug ngrok",
"type": "pwa-node",
"request": "launch",
"attachSimplePort": 0,
"killBehavior": "polite",
"runtimeExecutable": "wskdebug",
"args": [
"wskdebug-examples/webaction",
"${workspaceFolder}/webaction.js",
"-l",
"--ngrok"
],
"localRoot": "${workspaceFolder}",
"remoteRoot": "/code",
"outputCapture": "std"
},
{
"name": "wskdebug with build",
"type": "pwa-node",
"request": "launch",
"attachSimplePort": 0,
"killBehavior": "polite",
"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"
},
{
"name": "wskdebug with WSK_PACKAGE",
"type": "pwa-node",
"request": "launch",
"attachSimplePort": 0,
"killBehavior": "polite",
"runtimeExecutable": "wskdebug",
"args": [
"webaction"
],
"localRoot": "${workspaceFolder}",
"remoteRoot": "/code",
"outputCapture": "std",
"envFile": "${workspaceFolder}/.env"
}
]
}