Working with the new VSCode editor on a node.js project. I am attempting to configure my \"Launch\" profile for debugging by editing the launch.json file. I need to setup a
I'm successfully passing them using the env
property in launch.json
:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "SLS Webpack",
"protocol": "legacy",
"program": "${workspaceRoot}/node_modules/.bin/sls",
"cwd": "${workspaceRoot}",
"args": ["webpack", "watch", "-f", "${fileBasenameNoExtension}", "-p", "${fileDirname}/event.json"],
"env": {"AWS_REGION":"us-east-1", "SLS_DEBUG":"*"},
"outFiles": ["${cwd}/dist/**/*.js"],
"sourceMaps": true,
"smartStep": true
}
]
}