#debugging ts SAM based lambda functions in vscode
11 messages · Page 1 of 1 (latest)
It's been a while, but I know there's a vs code extension, and guides like this: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-build-typescript.html
Use the sam build command to build an AWS SAM serverless application that uses TypeScript as a .zip file archive or a container image.
What have you tried so far? What's not working?
Have you used SAM with python before?
I have used SAM with python on many projects quite successfully, both with Zip and Image based projects and have been able to set up debugging without too many issues
Have you seen this? https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-using-debugging.html
You can use AWS SAM with a variety of AWS toolkits and debuggers to test and debug your serverless applications locally.
Thank you, yes I am familiar with that, unfortunately there are no guides for TypeScript and even though they have a project type for typescript now when you do sam init, the debugging is not working. Of course I could just be missing a setting somewhere, but I really can't find any good documentation for typescript specifically. Regular nodejs works I think and even the lambda one works (only the x86 image no the arm64 for some reason)
This is one of the issues I had related to image based lambdas and I believe no typescript: https://github.com/aws/aws-toolkit-vscode/issues/4470
Do you have source map generation enabled in tsconfig.json?