Hi!
I created a grunt task to watch my files and restart node-theseus in case any of my file is changed. I use no-demon and I launch node-theseus within the exec option of grunt-nodemon (https://github.com/ChrisWren/grunt-nodemon#exec)
The problem is when I want to stop debugging. Somehow after only 2 process.exit caught grunt exits and node-theseus keeps running and the port 888 is still in use. That means that I can't start another debug session with node-theseus.
In node-theseus, you hard code the number of time to receive process.exit before exiting:
if (++exitCount >= 3) {
...
Would it be possible to pass this value (3) as a parameter? It would fix my issue...
Hi! I created a grunt task to watch my files and restart node-theseus in case any of my file is changed. I use no-demon and I launch node-theseus within the exec option of grunt-nodemon (https://github.com/ChrisWren/grunt-nodemon#exec)
The problem is when I want to stop debugging. Somehow after only 2 process.exit caught grunt exits and node-theseus keeps running and the port 888 is still in use. That means that I can't start another debug session with node-theseus.
In node-theseus, you hard code the number of time to receive process.exit before exiting: if (++exitCount >= 3) { ...
Would it be possible to pass this value (3) as a parameter? It would fix my issue...