My question is, is there a way to get the contents of the inner event
loop? I'm currently on node 4.12. I would ultimately like to
forcefully crash node and get all of the callbacks in the event loop
with their contexts (values of variables in a closure, etc).
I'm currently using node-inspector in debugging, but it also hangs
like this without running the code in debug mode.
Thanks!
https://github.com/bnoordhuis/node/compare/v0.6...print-handles
It's preliminary work I did on event loop / reference count debugging
(but v0.6 only)...
> forcefully crash node and get all of the callbacks in the event loop
> with their contexts (values of variables in a closure, etc).
...but it doesn't do that.
I'm not too familiar with the JavaScript->C++ interface. How would I
call this from JavaScript? I have a specific part in the code where I
would need to print everything.
On Dec 20, 2:27 pm, Ben Noordhuis <i...@bnoordhuis.nl> wrote:
There is no JS API, just send a SIGUSR2 to the `node` process and it
will print a list of active handles.
I suppose it's useful mostly to core or add-on developers but it might
give you a hint as to what is keeping your event loop alive ("hey,
what's that stray timer doing there?").