Skip to content

Instantly share code, notes, and snippets.

View agarbund's full-sized avatar

Adrian Ślipko agarbund

  • Wrocław, Poland
View GitHub Profile
@Choonster
Choonster / DebuggingNodeJSHerokuApps.md
Last active November 14, 2021 03:10
How to debug Node.js web applications running on Heroku using ngrok

Debugging Node.js web applications running on Heroku using ngrok

Introduction

Heroku only allows each dyno to send and receive external network traffic on a single port, which means you can't simply run node --debug server.js and attach your debugger to your-app.herokuapp.com:5858.

To work around this, you can use ngrok and Heroku ngrok Buildpack to tunnel to the debugger's port and access it externally.