Make `mach mochitest --debug --app=org.mozilla.geckoview.test` wait for a debugger
Categories
(GeckoView :: General, defect, P3)
Tracking
(Not tracked)
People
(Reporter: snorp, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: dev-prod-2020)
If you want to debug a crashing mochitest on Android, you need to attach via Studio. Since we can't actually launch the mochitests via Studio, we need a way to say via mach
that we intend to attach a debugger. I think we can do this with adb shell am set-debug-app org.mozilla.geckoview.test
.
Updated•6 years ago
|
Updated•6 years ago
|
Comment 1•6 years ago
|
||
(In reply to James Willcox (:snorp) (jwillcox@mozilla.com) (he/him) from comment #0)
If you want to debug a crashing mochitest on Android, you need to attach via Studio. Since we can't actually launch the mochitests via Studio, we need a way to say via
mach
that we intend to attach a debugger. I think we can do this withadb shell am set-debug-app org.mozilla.geckoview.test
.
This is possible, but you also have MOZ_DEBUG_{CHILD_}WAIT_FOR_JAVA_DEBUGGER
at your disposal. That seems more robust.
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Description
•