Testing and debugging

This page was generated from content adapted from the AWS Developer Guide

Invoking functions locally

Running API Gateway locally

  • Note Hot reloading is when only the files that changed are refreshed, and the state of the application remains the same. In contrast, live reloading is when the entire application is refreshed, and the state of the application is lost.

Step-through debugging Lambda functions locally

  • Note If you're using sam local start-api, the local API Gateway instance exposes all of your Lambda functions. However, because you can specify a single debug port, you can only debug one function at a time. You need to call your API before the AWS SAM CLI binds to the port, which allows the debugger to connect.

Last updated