It would be nice to have a setup for debugging in vscode.
Activity
yxd-hde commentedon Dec 14, 2017
PR is welcomed.
mark-bixler commentedon Nov 1, 2018
Did anyone ever get this figured out? I had it on Mac, but can't get debugging working on Windows :(
maxmonterumisi commentedon Dec 12, 2018
Can someone help me configure python-lambda-local under VSC (Windows 10) please ?
emepetres commentedon Feb 16, 2019
By using pytest, I'm able to debug it out of the box, without any specific configuration. Just set a break point, and execute the test within vscode.
Probably with unittests or nosetests will work as well: https://code.visualstudio.com/docs/python/unit-testing#_enable-a-test-framework
ggaller commentedon May 15, 2023
This is working VS Code debug configuration for
launch.json:{ "name": "Lambda: My Lambda", "type": "python", "request": "launch", "module": "lambda_local", "args": [ "-l", "${workspaceFolder}/.venv/lib", "-f", "lambda_handler", "-t", "180", "-e", "${workspaceFolder}/env.json", "${workspaceFolder}/lambda_function.py", "${workspaceFolder}/events/event.json" ], "console": "internalConsole", "internalConsoleOptions": "openOnSessionStart", "env": { "AWS_PROFILE": "some-profile", "AWS_DEFAULT_REGION": "eu-central-1" } }