#debugging ts SAM based lambda functions in vscode

11 messages · Page 1 of 1 (latest)

thorn creek
#

I'm am just starting out in node development and coming from a python background where everything just works, I'm just really confused as to how to get a SAM project going with typescript and still have the ability to step debug in vscode.

normal ocean
#

What have you tried so far? What's not working?

#

Have you used SAM with python before?

thorn creek
#

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

thorn creek
#

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)

thorn creek
normal ocean
thorn creek
#

yes

#

I'm not married to SAM... doing more research on this, it seems like typescript is not well supported. Are there other frameworks I can use that allow for vscode debugging and support deploying to AWS lambda?