Toolkit can debug template.yaml generated by CDK
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 807
- Avg merge
- 10h 12m
- Merged PRs (30d)
- 7
Description
> If the template.yaml file _contents_ don't look like a SAM file, Toolkit will skip it. What do the contents look like? Also, is the file part of the vscode workspace?
The file is generated by CDK and I can use it just fine via command line `sam local invoke ...`. But AWS Toolkit does not load it preventing me from using sam cli Debug Configuration. We are starting the sam local invoke debugger with a VS Code preLaunchTask and attaching to the debugger to workaround this problem but it would be nice for AWS Toolkit to support the same templates sam cli does
_Originally posted by @thefat32 in https://github.com/aws/aws-toolkit-vscode/issues/1395#issuecomment-1230650607_
Contributor guide
Research direction
Start by reproducing the issue with a CDK-generated template.yaml and compare AWS Toolkit handling with the working `sam local invoke ...` command. Check the VS Code preLaunchTask and SAM CLI Debug Configuration workaround; done means the Toolkit loads the generated template and supports its debug configuration directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, typescript, vscode
- Domain
- cli, cloud, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100