Debugging handler process on Android?

141 views
Skip to first unread message

Luis Garcia

unread,
Jan 27, 2022, 12:32:54 PM1/27/22
to Crashpad-dev
Hi folks, is there documentation on how to debug the Crashpad handler process on Android? All the documentation I've come across relates to debugging the browser on Android (Java or native). I ask is because on Android the handler process isn't always running like on Windows, MacOS, or Linux; instead, a handler is created to process each crash and then exits, so it's very short-lived.

I'm working in a Linux environment (Ubuntu) and using the emulator, in case that matters.

Thanks for your help.

Cheers,
Luis 

Joshua Peraza

unread,
Jan 27, 2022, 12:41:45 PM1/27/22
to Luis Garcia, Crashpad-dev
If I really needed to, I would put a sleep+logs at handler startup and then use gdb to attach to the already running process using its process ID. Our test coverage is pretty good though so it's often easier to find or write an appropriate unit test.

--
You received this message because you are subscribed to the Google Groups "Crashpad-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crashpad-dev...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/crashpad-dev/5176664c-73ce-4ee7-8288-1b519a4e8ce9n%40chromium.org.
Reply all
Reply to author
Forward
0 new messages