Skip to content
Free since 2015. Built for the engineers who keep things running.

cat /articles/debug-your-python-lambda-functions-locally.md

Cloud

Debug Your Python Lambda Functions Locally

While developing your lambda functions, debugging may become a problem. As a person who benefits a lot from step-by-step debugging, I had difficulty debugging lambda functions. I got lost in the logs. Redeploying and trying again with different parameters over and over... then, I found the AWS Serverless Application Model (SAM) Command Line Interface (CLI). The AWS SAM CLI lets you debug your AWS Lambda functions in a good, old, step-by-step way. If you don’t know AWS SAM CLI, you should definitely check it out here. Basically, using SAM CLI, you can locally run and test your Lambda functions in a local environment that simulates the AWS runtime environment. Without the burden of redeploying your application after each change, you can develop faster in an iterative way.

dzone.com28 Jan 2019 · summary

article --summary

The summary

In this tutorial, we demonstrate how you can locally debug lambda functions in your Python projects using the AWS SAM CLI.

Editorial note: This is a summary of an article first published by dzone.com. The full piece is on their site.

articles --latest

Latest articles

New from the blogs we follow and the community.

All articles

newsletter --weekly

DevOps Weekly, minus the noise.

The best reads, new jobs and upcoming events, in one email a week.