Usage of Chromium‘s gdbinit is recommended when debugging with gdb on any platform. This is necessary for source-level debugging when
use_custom_libcxx are enabled (they’re enabled by default), and also adds extra features like pretty-printing of custom Chromium types.
To use, add the following to your
Notice that in components builds, the debug files will be loaded lazily. Because of this, the program needs to run at least once before breakpoints can be set. Alternatively, gdb will ask for confirmation as follows:
Make breakpoint pending on future shared library load? (y or [n])