I'm trying to make a post-mortem debugging session for a Node.Js process.
Here is my modus operandi:
- Run
ulimit -c unlimitedcommand - Run the command:
node --abort-on-uncaught-exception crash.js - where
crash.jsis:
throw new Error('BOOM');
Then the console outputs:
ā /cores arch -arm64 lldb node -c core.6511
(lldb) target create "node" --core "core.6511"
Core file '/cores/core.6511' (arm64) was loaded.
(lldb) bt
* thread #1, stop reason = signal SIGSTOP
* frame #0: 0x000000010553e3e4 node`v8::base::OS::Abort() + 24
(lldb)
I have only one frame instead of a bunch of them.
I'm working on a:
- MacBook air (m1, 2020)
- OS Monterey - 12.6