0

Add support for running web tests with debug_renderer

If debug_renderer detects that you're running web tests, modifies the
command line flags and adds appropriate run_web_tests flags for
debugging the renderer spawned for individual web tests.

Bug: None
Change-Id: I85980ff57c85738f8ad8d47e83ba9d61d5411e09
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4198115
Commit-Queue: Robert Flack <flackr@chromium.org>
Reviewed-by: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1109686}
This commit is contained in:
Robert Flack
2023-02-24 18:49:51 +00:00
committed by Chromium LUCI CQ
parent 2d80570da7
commit 6bbefe7e7e
3 changed files with 36 additions and 93 deletions
docs/linux
third_party/blink/tools

@ -145,6 +145,16 @@ And debug the renderer you are interested in debugging with:
gdb -p <pid>
```
#### Debugging run_web_tests.py renderers
The `debug_renderer` script can also be used to debug the renderer running
a web test. To do so, simply call `run_web_tests.py` from `debug_renderer.py`
with all of the standard arguments for `run_web_tests.py`. For example:
```sh
./third_party/blink/tools/debug_renderer ./third_party/blink/tools/run_web_tests.py [run_web_test args]
```
#### Selective breakpoints
When debugging both the browser and renderer process, you might want to have