I am unable to debug node.js server when using forever.js. Is it not possible?
Exampel: forever start --debug server.js
1) Starts the server.js ok, but I am unable to debug with node-inspector.
2) forever.js as: forever start server.js
Does not re-start the server - this is the core service of forever?
I am working on a mac.
Thanks Regards
Forever does not support debug mode out of the box. You can get around it by asking forever to start a custom command:
I assume you would like to restart the server after a change in source files. I am not very familiar with forever, but I would say you forgot to add
-w
option to the command line?To debug a process and have it automatically restarted, run
See also this node-inspector issue: #196.