adobe-research / theseus

A pretty darn cool JavaScript debugger for Brackets
Other
1.34k stars 69 forks source link

node-theseus and grunt #78

Open devitito opened 9 years ago

devitito commented 9 years ago

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...

alltom commented 9 years ago

Sure! Sorry for the inconvenience.

devitito commented 9 years ago

Thanks! :)