Repro for hitting breakpoints in C/C++ files

Hitting breakpoints upon initial load (no back-end state)

Breakpoint on C++ file

This test illustrates the problem that DevTools does not always manage to set breakpoints in time for debugging C/C++ files using the DWARF extension. In each of these cases, we should reliably hit a breakpoint at the end of the steps.

Steps

  1. Open DevTools with the C/C++ DWARF Extension enabled
  2. Set a breakpoint in instrumentation-breakpoints.cc
  3. Open a new tab and open DevTools
  4. Navigate to this page
  5. Breakpoint should hit

Hitting breakpoints on reload (back-end state available)

This test is the same as the test before, but are based on reloading (i.e. we have loaded this page within the same tab already once).

Breakpoint on C++ file

This test illustrates the problem that DevTools does not always manage to set breakpoints in time for debugging C/C++ files when reloading the page.

Steps

  1. Open DevTools with the C/C++ DWARF Extension enabled
  2. Set a breakpoint in instrumentation-breakpoints.cc
  3. Reload
  4. Breakpoint should hit