Trying to debug run_web_tests.py

40 views
Skip to first unread message

Chris Blume

unread,
Apr 9, 2019, 3:26:40 PM4/9/19
to blink...@chromium.org
Hello everyone,

I'm trying to debug some libjpeg-turbo changes I'm making. run_web_tests.py shows a slightly different result for some images.

Anything I print to stdout seems to be consumed by run_web_tests.py. If I try to open a file it crashes (presumably sandboxing). I'm not sure how to attach gdb through this script.

Could someone point me in the right direction?
Thanks!

Chris Blume |
 Software Engineer | cbl...@google.com | +1-614-929-9221

Dirk Pranke

unread,
Apr 9, 2019, 3:32:51 PM4/9/19
to Chris Blume, blink-infra
This list is mostly dead these days, so you're better off asking on blink-dev.

However, mostly dead != completely dead, so ...

If you run run_web_tests.py with --debug-rwt-logging, it will dump stdout and stderr as it gets it. This gets very verbose if you're running multiple tests, but for a single test or a few tests, it's not too bad.

Apart from that, if you want to instrument things and just see the logs, log to stderr, not stdout. Trying to use run_web_tests + a debugger is a recipe for madness, but if you run wiht --debug-rwt-logging, you should see enough to tell you how to invoke content_shell directly on a test, and then and run *that* under gdb.

Hope this helps,

-- Dirk

--
You received this message because you are subscribed to the Google Groups "blink-infra" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-infra...@chromium.org.
To post to this group, send email to blink...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-infra/CAPHsw35a1PFq6t4P7VL%3DvCJKDHHAnMywhq9dnzX7z8XKxSj6Cg%40mail.gmail.com.

Chris Blume

unread,
Apr 9, 2019, 3:41:12 PM4/9/19
to Dirk Pranke, blink-infra
Perfect!
Thank you


Chris Blume |
 Software Engineer | cbl...@google.com | +1-614-929-9221

gpcf...@gmail.com

unread,
Sep 29, 2019, 1:41:42 AM9/29/19
to blink-infra, cbl...@google.com
Reply all
Reply to author
Forward
0 new messages