Open Bug 1548876 Opened 6 years ago Updated 2 years ago

Make `mach mochitest --debug --app=org.mozilla.geckoview.test` wait for a debugger

Categories

(GeckoView :: General, defect, P3)

Unspecified
All
defect

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.

Priority: -- → P3

(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 with adb 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.

Depends on: 1522318
Rank: 10
Rank: 10 → 21
Whiteboard: dev-prod-2020
Severity: normal → S3
Rank: 21 → 333
You need to log in before you can comment on or make changes to this bug.