i am new to heroku and node.js. i have a small node.js app which i can start and run successfully on my local machine using FOREMAN from the heroku toolbelt. i do not understand how to best debug the app, though.
i see that there is an eclipse debugger for node.js as well as the node-inspector project. but i cant seem to make these work with FOREMAN.
foreman start
if it is not possible to debug an app started by foreman, what is the purpose of foreman?
The purpose of Foreman is to allow you to run complex applications, which may consist of several processes, easily. Check out the author’s blog post on Foreman:
By leveraging Foreman, Heroku has made it so that you can essentially run any kind of process you want to–a Rails app, a Sinatra app, a Node.js app, or anything else–simply by specifying how to start it in your
Procfile, which Foreman reads and executes.Foreman also allows you to take this simple Procfile and export it to production environments using tools like Upstart and Init. It does not provide any debugging functionality (nor is it meant to).