forked from crosswalk-project/crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Linux Debugging
Alexis Menard edited this page Jul 12, 2013
·
2 revisions
LOG(INFO) << "blahblah" << string << int;
- stack trace
#include "base/debug/stack_trace.h"
...
base::debug::StackTrace trace;
trace.PrintBacktrace();
WTFLogAlways("blahblah %s \n", str);
- stack trace
WTFReportBacktrace();
- 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