Home > Software engineering >  How to set breakpoints in V8 for GDB debugging?
How to set breakpoints in V8 for GDB debugging?

Time:11-14

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!

CodePudding user response:

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.

  • Related