

In order to debug the function in Visual Studio Code, run the preconfigured remote debugger, which will wait about 15 seconds as defined above, and then invoke the function. Debugging a Python Lambda in Visual Studio Code Configure LocalStack for VS Code remote Python debuggingįirst, make sure that LocalStack is started with the following configuration (see the Configuration docs for more information): There, the necessary code fragments for enabling debugging are already present. To iterate quickly over your function code.įor a simple working example of this feature, you can refer to With the same local code mounting functionality that also helps you

Lambda functions debugging used to be a difficult task.

More examples and tooling support for local Lambda debugging (including support for other IDEs like P圜harm) is coming soon - stay tuned! Covered Topics
#Visual studio code python debug step by step pro
This guide covers remote debugging of Lambda functions with the IDEs Visual Studio Code and IntelliJ IDEA.įor a simple working example of this feature, check out Pro sample lambda-mounting-and-debugging.
