nodejs / node-chakracore

Node.js on ChakraCore :sparkles::turtle::rocket::sparkles:
Other
1.92k stars 340 forks source link

Post Mortem Support #9

Open yunong opened 8 years ago

yunong commented 8 years ago

Any thoughts on post mortem support? It's possible to generate a core dump of a V8 Node process and inspect both javascript and native objects. This is useful for many classes of problems. In particular, this helps to diagnose unexpected crashes and memory leaks.

kunalspathak commented 8 years ago

Thanks for the interest @yunong. You could use windbg to debug dump from node+chakracore. You could track unexpected crashes and memory leaks with it. An example of bug in node-serialport that I could track using windbg is voodootikigod/node-serialport#623.

However it will just support inspecting native objects and not javascript objects. We will evaluate on adding javascript debugging support in future.