The areas that the IBM Runtimes development team are focusing on in 2016 are a summary diagnostic report for Node.js triggered on a variety of failure events, and support for off-line viewing and analysis of core dumps from Node.js applications using the LLDB debugger library
1. NodeReport – a human-readable summary report from Node.js
Example 1 – Unhandled exception
Example 2 – Out of Memory Error
2. Analysis of core dumps from Node.js using the LLDB debugger library
Development work in the IBM Runtimes team is focused on improving the support for analysis of core dumps on Linux, Mac and Windows platforms using the llnode and lldb projects. Enhancements to the LLDB C++ SB API will allow all areas of memory in a Node.js process to be accessed from the core dump, which will in turn allow the V8 heap to be examined using the lldb debugger with the llnode plugin.
The following example demonstrates a simple Node.js application using the prototype API to display the thread stacks from a Node.js core dump. The main thread stack shows that the dump was triggered by a V8 heap out of memory failure: