How do I debug node.js remotely in Heroku?

Asked 2 years ago, Updated 2 years ago, 78 views

What should I do to remotely debug the node.js app that started as WebDyno on Heroku?

web:port=$PORT node --debug=5858index.js 

When I set up and started the Procfile, only 443 could be telnetted and 5858 could not be connected.
In the case of WebDyno, is it impossible to open the debug port and connect?

node.js heroku

2022-09-30 18:17

1 Answers

By default, ports other than 80 and 443 are not open, so I think it is probably not possible.
Or, if you insert a proxy like NGROK like This article, you may be able to do it.


2022-09-30 18:17

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.