You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It took me a bit to piece together how to debug with breakpoints so I figured I'd share the steps. This method is for PyCharm, but I'm certain a similar setup could be used to debug in VSCode.
PyCharm → Run/Debug Configurations → New Python Debug Server
Copy from pip line from part 1) in the dialog and install. Reopen the Run/Debug Configuration window.
Copy the code from 2) in the dialog.
Paste this code in node_modules/serverless-offline/dist/lambda/handler-runner/python-runner/invoke.py at the top (line 13).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
It took me a bit to piece together how to debug with breakpoints so I figured I'd share the steps. This method is for PyCharm, but I'm certain a similar setup could be used to debug in VSCode.
node_modules/serverless-offline/dist/lambda/handler-runner/python-runner/invoke.py
at the top (line 13).sls offline start
.Beta Was this translation helpful? Give feedback.
All reactions