How to get diagnostic info for node.js hang?

  Kiến thức lập trình

We are using node 18.18.2 for windows in our CI. It is hanging, and after 30 minutes, are wrapper process kills it. When it hasn’t killed it, I did get a dump of node, but it didn’t really show much. How can I augment our wrapper process to, instead of just kill node after reaching 30 minutes, to get diagnostic info like stack trace and variables and such to determine where it is hanging.

LEAVE A COMMENT