Debugging Android Chromium. Is there an alternative to debugging with lldb in the console?

187 views
Skip to first unread message

Sven Dysthe

unread,
Dec 28, 2024, 8:06:28 PM12/28/24
to Chromium-dev
Hi,

I have a debug Android Chromium build successfully built, but I am facing one issue. I want to run Android Chromium from VSCode, attach and display the stack on breakpoint/segmentation. Similar to debugging desktop Chromium.

Right now, I have to use "out/debug/bin/chrome_public_apk lldb" as told in the instructions here: https://chromium.googlesource.com/chromium/src/+/HEAD/docs/android_debugging_instructions.md#debugging-c_c

However, after doing some digging, it looks like this isn't possible: https://issues.chromium.org/issues/40203975? It's hard to tell the current status.

Is there any alternatives to debugging that performs much like VSCode's Run and Debug stack viewer? I would love to be able to see declared variables, objects, etc. that are currently on the stack that lldb doesn't seem to show. I also prefer to not use a terminal and type "C" to step through the code.

Thank you.

Andrew Grieve

unread,
Jan 2, 2025, 2:11:43 PMJan 2
to xpsven...@gmail.com, Chromium-dev
This used to mostly work with gdb, but as per the bug our most recent attempts to get it to work with lldb haven't panned out, and the failure mode made it not clear how to make progress...

I don't know of an alternative.

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/9342007f-2dd3-458e-8c77-207a2b37b897n%40chromium.org.

Sven Dysthe

unread,
Jan 2, 2025, 6:04:57 PMJan 2
to Chromium-dev, Andrew Grieve, Chromium-dev, xpsven...@gmail.com
Hopefully one day it will work.  Thank you for the information. 
Reply all
Reply to author
Forward
0 new messages