0

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.

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

1 Answers1

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:

working configuration

Additional notes:

  1. 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.
  2. I also use yarn instead of npm, but if you use the later, then pycharm will suggest it as default.
  3. You also need to add the "debug" script to your package.json, as explained in the guide: "debug" script
Alvaro Rodriguez Scelza
  • 3,643
  • 2
  • 32
  • 47