Unlike Node\.js, \.NET or Java, Python requires you to enable remote debugging in your Lambda function code\. If you enable debugging \(using the `--debug-port` or `-d` options mentioned above\) for a function that uses one of the Python runtimes \(2\.7 or 3\.6\), SAM CLI maps through that port from your host machine to the Lambda container\. To enable remote debugging, use a Python package such as [remote\-pdb](https://pypi.python.org/pypi/remote-pdb)\.
0 commit comments