AWS Sam Local Debug Pycharm Lambda Function

I would like to debug my python lambda function Using Sam local invoke with —debug-port but am having lots of trouble. What do you recommend?

1
2 comments

I'm guessing you are using AWS Toolkit plugin?
It's not developed by JetBrains so we can't guarantee its stability.

If you have general debugging issues (not related to any 3rd party plugin) please provide more details so we can have a clearer picture.

0

First off thank you for answering my post. What i'm trying to do is run:  sam local invoke -d [port number] [lambda function] in a separate terminal then connect with my lambda function within the pycharm debugger for the purpose of stepping through my code, etc. I know there is a python-remote debug configuration but i have been unsuccessful in connecting with sam local debugger. Do you have any recommendations?. Every time i try to connect with it it says 'can't connect to 0.0.0.0:[port number]'. Thank you again.

3

Please sign in to leave a comment.