Testing and debugging
Last updated
Was this helpful?
Last updated
Was this helpful?
Note The sam local invoke command corresponds to the AWS Command Line Interface (AWS CLI) command . You can use either command to invoke a Lambda function.
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.
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.