Step-through debugging in VSCode with Postman
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
## System details (run the `AWS: About Toolkit` command)
OS: Linux x64 5.10.16.3-microsoft-standard-WSL2
Visual Studio Code extension host: 1.78.2
AWS Toolkit: 1.72.0
node: 16.17.1
## Question
So I understand I can invoke Lambdas locally in various ways. All of these ways consist of sending a payload and the debugging session only lasts for one request cycle.
I'd love to be able to start the APIG instance with `sam local start-api` and be able to step-through debug while hitting the API from Postman.
It seems this just isn't possible?
I have tried using a combination of `sam local start-api -d 5858` and configuring my VSCode `launch.json` to attach to port 5858, however this does not work as expected.
Any advice or guidance here? With Azure Functions, I can just press F5 and everything works as expected...
Contributor guide
Research direction
Start by reproducing the reported workflow with `sam local start-api -d 5858`, a VSCode `launch.json` attach configuration, and a Postman request. Compare this with the AWS Toolkit's existing local Lambda debugging entry points. Done should mean that an API request from Postman reaches the local Lambda and supports step-through debugging in VSCode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, postman, vscode
- Domain
- api, cloud, devtools
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100