1. Make sure that the NodeJS plugin is enabled

  2. Select your run configurations (screen)

  3. Select + > Node.js Remote Debug

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2ad790e2-039e-412c-a66e-f69aa361f3f4/Untitled.png

  1. Make sure you enter the port selected above as well as the correct host

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/6fc1f19d-aa39-44e0-a175-233d4796d20a/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f9517d81-c2e8-4e71-8b43-2aa63f72170f/Untitled.png

Once those are configured simply run the debug target as you normally would and it will stop on your breakpoints.