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

Clone this wiki locally