Created
April 13, 2022 01:27
-
-
Save danfoust/9354bf787819f26be7f074aaa492ba73 to your computer and use it in GitHub Desktop.
Serverless Offline launch.json for breakpoints
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": [ | |
{ | |
"name": "Debug Serverless Offline", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceRoot}/backend", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": ["run-script", "debug"] | |
} | |
] | |
} |
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": [ | |
{ | |
"name": "Debug Serverless Offline", | |
"type": "node", | |
"request": "launch", | |
"cwd": "${workspaceRoot}/backend", | |
"runtimeExecutable": "npm", | |
"runtimeArgs": [ | |
"set", | |
"SLS_DEBUG=*", | |
"&&", | |
"node", | |
"--inspect", | |
"./node_modules/serverless/bin/serverless", | |
"offline", | |
"-s=dev", | |
"--noPrependStageInUrl" | |
] | |
} | |
] | |
} |
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
{ | |
"scripts": { | |
"start": "sls offline --noPrependStageInUrl", | |
"debug": "set SLS_DEBUG=* && node --inspect ./node_modules/serverless/bin/serverless offline -s dev --noPrependStageInUrl" | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment