Skip to content

Instantly share code, notes, and snippets.

@davcd
Created May 12, 2019 18:22
Show Gist options
  • Save davcd/2f61b2d6de4354e7ac7a911a43a5504e to your computer and use it in GitHub Desktop.
Save davcd/2f61b2d6de4354e7ac7a911a43a5504e to your computer and use it in GitHub Desktop.
VS Code debug configuration for Serverless
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Serverless Offline",
"program": "${workspaceRoot}/node_modules/serverless/bin/serverless",
"args": ["offline", "--noTimeout", "--dontPrintOutput", "--stage=dev"],
"sourceMaps": true,
"runtimeArgs": ["--lazy"],
"outFiles": ["${workspaceFolder}/.webpack/**/*.js"],
"protocol": "inspector",
"runtimeExecutable": "node",
"env": {
},
"windows": {
"program": "${workspaceRoot}\\node_modules\\serverless\\bin\\serverless"
}
},
{
"type": "node",
"request": "launch",
"name": "Launch Invoke Local",
"program": "${workspaceRoot}/node_modules/serverless/bin/serverless",
"args": ["invoke", "local", "-f", "functionName", "--path", "eventFile.json"],
"sourceMaps": true,
"runtimeArgs": ["--lazy"],
"outFiles": ["${workspaceFolder}/.webpack/**/*.js"],
"protocol": "inspector",
"runtimeExecutable": "node",
"env": {
},
"windows": {
"program": "${workspaceRoot}\\node_modules\\serverless\\bin\\serverless"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment