Created
May 12, 2019 18:22
-
-
Save davcd/2f61b2d6de4354e7ac7a911a43a5504e to your computer and use it in GitHub Desktop.
VS Code debug configuration for Serverless
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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