Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adding vscode debug examples
  • Loading branch information
franciscocpg committed Apr 6, 2018
commit 516af820c03e610a6b5b77a17cf174a3c30d2a30
77 changes: 77 additions & 0 deletions examples/babel-webpack-4/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
// 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": "node",
"request": "launch",
"name": "Launch Dev 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": {
// Here we set some environment vars that should be set locally.
// They can and will overwrite the ones coming from your serverless.yml
},
"windows": {
"program": "${workspaceRoot}\\node_modules\\serverless\\bin\\serverless",
}
},
{
"type": "node",
"request": "launch",
"name": "Launch Invoke Local - first function",
"program": "${workspaceRoot}/node_modules/serverless/bin/serverless",
"args": [ "invoke", "local", "-f", "first", "--data", "{}" ],
"sourceMaps": true,
"runtimeArgs": [
"--lazy"
],
"outFiles": [
"${workspaceFolder}/.webpack/**/*.js"
],
"protocol": "inspector",
"runtimeExecutable": "node",
"env": {
// Here we set some environment vars that should be set locally.
// They can and will overwrite the ones coming from your serverless.yml
},
"windows": {
"program": "${workspaceRoot}\\node_modules\\serverless\\bin\\serverless",
}
},
{
"type": "node",
"request": "launch",
"name": "Launch Invoke Local - second function",
"program": "${workspaceRoot}/node_modules/serverless/bin/serverless",
"args": [ "invoke", "local", "-f", "second", "--data", "{}" ],
"sourceMaps": true,
"runtimeArgs": [
"--lazy"
],
"outFiles": [
"${workspaceFolder}/.webpack/**/*.js"
],
"protocol": "inspector",
"runtimeExecutable": "node",
"env": {
// Here we set some environment vars that should be set locally.
// They can and will overwrite the ones coming from your serverless.yml
},
"windows": {
"program": "${workspaceRoot}\\node_modules\\serverless\\bin\\serverless",
}
},
]
}
Loading