https://serverless-stack.com/ logo
#help
Title
# help
s

Simone Gaiarin

12/13/2021, 6:45 PM
is it possible to add breakpoints in vscode also for python lambda? any documentation on this?
f

Frank

12/13/2021, 9:47 PM
Hey @Simone Gaiarin, I haven’t tired it but my gut feeling is that it should work. Does the
launch.json
in this example not work for Python functions? https://serverless-stack.com/examples/how-to-debug-lambda-functions-with-visual-studio-code.html
s

Simone Gaiarin

12/14/2021, 9:45 AM
actually I haven't tried because I've seen references to node and I assumed it was for js, but now that I read better the launch.json calls sst which then will call python. I'll give it a try.
so I gave it a try, and it says unbound breakpoint
f

Frank

12/18/2021, 9:12 AM
Oh I see. hmm.. have you setup
launch.json
scripts for other (non SST) Python projects before?
s

Simone Gaiarin

12/19/2021, 12:20 PM
in other project yes, and the breakpoints usually works
f

Frank

12/22/2021, 9:27 AM
I see. Do you have a sample by any chance? I can take a look at how they are setting up the
launch.json
2 Views