docs/debugging.md
This document provides a high-level overview of debugging the Chromium browser and its child processes. For more detailed and platform-specific instructions, please see the links at the end of this guide.
Chromium is a multi-process application. The first step in debugging is often identifying and attaching to the correct process.
gdb --args out/Default/chrome).Pass these to the chrome executable to alter its behavior for debugging.
--wait-for-debugger
--renderer-cmd-prefix='xterm -e gdb --args'
xterm with gdb attached.
This is a common and useful debugging flag on Linux.--utility-cmd-prefix='xterm -e gdb --args'
--no-sandbox
--single-process
--enable-logging --v=1
v value for more verbosity.When Chrome is already running, you can use its built-in Task Manager to find the process you want to debug.
Shift+Esc (or More Tools > Task Manager in
the menu).gdb -p <pid>).For detailed instructions on setting up and using a debugger on your specific platform, please refer to the following guides: