How do debug AWS SAM Local

Is there any guidance available on how to configure debugging when running AWS Lambda functions locally using AWS SAM Local?

3 comments
Comment actions Permalink

there is no guidance for it (no special support is provided), but the instructions for VSCode (https://github.com/awslabs/aws-sam-cli/blob/develop/docs/usage.rst#debugging-applications) should work for webstorm, too: you have to start the app in the way described in the doc and then create a run configuration of type "Attach to Node.js/Chrome", with port matching the port you pass to your app as --debug-port.

Note: when using Node.js versions < 7 (e.g. Node.js 4.3 and Node.js 6.10) choose the Node.js option, for Node.js versions including and above 7 (e.g. Node.js 8.10) use Chrome

0
Comment actions Permalink

Heads up link is dead

0

Please sign in to leave a comment.