Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Linux Debugging

James Ketrenos edited this page Sep 2, 2013 · 1 revision

GDB, Running Test, Valgrind and etc.

Chromium Linux Debugging

Printf

in Chromium source

LOG(INFO) << "blahblah" << string << int;

  • stack trace
#include "base/debug/stack_trace.h"
...
  base::debug::StackTrace trace;
  trace.PrintBacktrace();

in Blink source

WTFLogAlways("blahblah %s \n", str);

  • stack trace

WTFReportBacktrace();

GPU Debugging

apitrace

  • check out and build apitrace: https://github.com/apitrace/apitrace
  • dump trace > apitrace trace ./content_shell --in-process-gpu --no-sandbox http://YourInterestedSite
  • debug the dump file > qapitrace content_shell.trace
Clone this wiki locally