Search code examples
securityreverse-engineeringv8

How to set breakpoints in V8 for GDB debugging?


Hi I am new to GDB and V8. I'm wanting to set a breakpoint on a specific line within V8, for example any line in https://github.com/v8/v8/blob/main/src/compiler/simplified-lowering.cc

How can I achieve this? Your help would be greatly appreciated. Thank you!


Solution

  • Just like setting a breakpoint in any other program, e.g:

    (gdb) break simplified-lowering.cc:1234
    

    See https://sourceware.org/gdb/current/onlinedocs/gdb/ for details.