Skip to content

Instantly share code, notes, and snippets.

View likeabbas's full-sized avatar

Abbas Dharamsey likeabbas

  • @block.xyz
  • New York
View GitHub Profile
@pajtai
pajtai / instructions.md
Last active May 29, 2023 12:13
Debugging Node with Webstorm running on a remote server

Debugging node running on a remote server

Node uses a TCP interface for debugging, so if you can get a handle on the right port, you can debug apps running remotely. This means you can run through code on staging, Vagrant, etc. The following shows you how to start node with the debug flag and use an SSH tunnel to access the right port.

Things you need:

  • ssh access to the server
  • ability to restart node app with --debug flag or node-inspector installed on server

Debugging using Webstorm