I use pycharm and wanted to know if there is a way to debug Amazon Serverless Offline with it. I found this guide, but though it gives some knowledge on how to interactively debug using an IDE it didn't help me. It also provides a detailed guide on how to debug using VSCODE, which I successfully implemented.
Asked
Active
Viewed 294 times
1 Answers
1
Based in the guide's instructions for vscode, I was able to "migrate" that configuration to pycharm and had success in debugging with it.
I am new to the nodejs world, so my first insight was to realize that the command being used is actually npm.
This is my working configuration:
Additional notes:
- As you can see, I use NVM to easily change between node versions, but this is not necessary and pycharm will suggest your global Node version as default.
- I also use yarn instead of npm, but if you use the later, then pycharm will suggest it as default.
- You also need to add the "debug" script to your package.json, as explained in the guide:

Alvaro Rodriguez Scelza
- 3,643
- 2
- 32
- 47