Skip to main content
100%

Gist 58d08353ae4a8a72f84a

✓ Published0🌍 Public
Aalessioalex
Last edited Sep 11, 2013
Created on Jun 1, 2015

This example demonstrates a debugging technique for retrieving a JavaScript stack trace from a Node.js process stuck in an infinite loop. It shows the step-by-step process of attaching GDB to the running process, setting a breakpoint at `v8::internal::Runtime_StackGuard`, and triggering `v8::V8::TerminateExecution` to reach a safe point where V8 can print the trace via `V8_Fatal`. The output reveals the JavaScript call stack, including function names and file locations.

AI-generated description

Similar vizzes