aws / aws-toolkit-vscode

Amazon Q, CodeCatalyst, Local Lambda debug, SAM/CFN syntax, ECS Terminal, AWS resources
https://marketplace.visualstudio.com/items?itemName=AmazonWebServices.amazon-q-vscode
Apache License 2.0
1.49k stars 418 forks source link

AWS SAM local debugging documentation is outdated #1490

Open tkumark opened 3 years ago

tkumark commented 3 years ago

aws toolkit does not seem to produce Run Locally| Debug Locally | Configure CodeLenses in VS Code. I am starting off with Lambda development for debugging purpose I do not see any "Debug Locally" or "Configure" so not sure how to inject events into the debugging process. I have install AWS toolkit installed. Is there any other extension

image

justinmk3 commented 3 years ago

The "Run Locally| Debug Locally" codelens was replaced with "Add Debug Configuration" codelens since Toolkit 1.12, so that run/debug is now driven by VSCode's built-in "launch config" system, like any other debug extension.

Also we're happy to answer any specific questions you have here. Thanks!

tkumark commented 3 years ago

@justinmk3 Thanks for the clarification the one I was refering to was a youtube video https://www.youtube.com/watch?v=FINV-VmCXms. This should be updated. Most of the videos related to debugging in youtube refer to "Run Locally| Debug Locally"

tkumark commented 3 years ago

@justinmk3 Also when googling for lambda function debugging locally this link comes up first https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-debugging-python.html this also causes confusion. this link is outdated since ptvsd library is no longer supported in VS code. If this link can be updated it would be great. The instruction in this link do not work.