1. gdb out/Debug/content_shell
2. set some breakpoints
3. run --single-process [--run-layout-test] some/test
4. examine the execution
5. adjust breakpoints
repeat 3-5 until I address the issue.
With static build, step 1 takes about 50 seconds, and step 3 is fast. With component build, step 1 is fast, but step 3 takes about 50 seconds, and repeated step 3 takes almost the same amount of time in the same gdb session.
I'm using static debug build because repeating steps 3-5 several times in each gdb session is my common debugging scenario. Though step 1 is the same slow, it happens in each gdb session once only, and I can do other things while waiting for it. But one my debugging work starts, I don't want the slowness of step 3 to interrupt.
However, based on the comments in the "stop supported static debug builds" thread, people using component build didn't complaint about the slowness of gdb 'run'. So I'm wondering if what I encountered is just special to me (and if yes, what's your solution?), or just my debugging scenario is not common.
Thanks,
Xianzhu