Android content_shell breakpoints/debugging/tracing

190 views
Skip to first unread message

Justin

unread,
Nov 1, 2012, 5:36:26 PM11/1/12
to chromi...@chromium.org
I'm trying to get some idea of the overall flow of loading/rendering within the content shell by directly tracing or breakpointing some of the low and high level areas (eg in content::Start() or WebCore::HTMLDocument).
What's the best way to go about this? Breakpoints I'm setting within GDB don't seem to be triggering.

Tony Chang

unread,
Nov 1, 2012, 6:02:05 PM11/1/12
to jay...@gmail.com, Chromium-dev
http://code.google.com/p/chromium/wiki/LinuxDebugging

The page talks about the chrome binary, but it should apply to content_shell as well.  Specifically, since content_shell is sandboxed and multiprocess, you need to pass --no-sandbox and --renderer-cmd-prefix.

I believe --single-process doesn't work yet.


On Thu, Nov 1, 2012 at 2:36 PM, Justin <jay...@gmail.com> wrote:
I'm trying to get some idea of the overall flow of loading/rendering within the content shell by directly tracing or breakpointing some of the low and high level areas (eg in content::Start() or WebCore::HTMLDocument).
What's the best way to go about this? Breakpoints I'm setting within GDB don't seem to be triggering.

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev

Justin

unread,
Nov 1, 2012, 6:44:08 PM11/1/12
to chromi...@chromium.org, jay...@gmail.com
Thanks, are you saying the linux debugging instructions should apply to Android as well? Or am I better off doing this kind of investigation with a Linux build and Eclipse etc?

Mikhail Naganov

unread,
Nov 1, 2012, 7:13:57 PM11/1/12
to jay...@gmail.com, chromi...@chromium.org
Debugging Content Shell or Chromium on Linux is usually easier and
faster than on Android. Unless you are investigating Android-specific
code, I'd recommend using desktop Linux build.

Also you might find these docs useful:

http://www.webkit.org/coding/technical-articles.html
http://dev.chromium.org/developers/tech-talk-videos

Isaac Burns

unread,
Jan 9, 2013, 3:20:52 PM1/9/13
to chromi...@chromium.org, jay...@gmail.com, mnag...@chromium.org
I need to investigate some Android-specific code.  Will the instructions given here http://code.google.com/p/chromium/wiki/AndroidEclipseDev allow debugging from Eclipse?
Reply all
Reply to author
Forward
0 new messages