jaridmargolin / inspect-process

🔍 Dead simple debugging for node.js using chrome-devtools.
425 stars 26 forks source link

Option to not close on process exit #42

Open ngryman opened 7 years ago

ngryman commented 7 years ago

Hey (me again),

I'm using inspect to profile my library. For this I need it to execute some piece of code and then inspect the reports inside DevTools. But DevTools closes right after my script ends. ~An easy workaround is to put some setInterval at the end. But it feels, you know...~ No workaround is able to keep the process alive, there is some sort of time out that kills it.

It would be awesome to have some sort of keep-alive flag that would let the user interact with the DevTools even after there is nothing to run. When the user closes DevTools, the process would be killed (which is not the case right now with the workaround).

Thanks!

jaridmargolin commented 7 years ago

Seems like a reasonable request.