Debug V8 part 2

1 · Sy Tran Dung · Feb. 10, 2022, midnight
In previous part, we have learnt how to debug d8 with lldb. In this part we still use our debug.js script. But we’ll add an other parameter to d8 before running process. lldb -- d8 --parse-only debug.js With parse-only flag, we will forcus on how d8 parse source content and turn into lexical input elements. Let’s add a breakpoint in v8::Shell::RunMain function and jump to it. (lldb) b v8::Shell::RunMain (lldb) run frame #0: 0x000000010004ba68 d8`v8::Shell::RunMain(isolate=0x0000000118110000, las...