Open
Bug 1947512
Opened 1 month ago
Updated 18 days ago
`./mach run --debug` doesn't work if Android Studio is running
Categories
(Firefox Build System :: Android Studio and Gradle Integration, defect)
Firefox Build System
Android Studio and Gradle Integration
Tracking
(Not tracked)
NEW
People
(Reporter: tcampbell, Unassigned)
Details
I don't have a good fix here yet, but I wanted to document this footgun.
STR
- Start Android Studio for device screen mirroring
- Run
./mach run --debug
Expected
- App starts and debugger attaches
Actual
- App hangs waiting for a debugger
The issue is that when Android Studio is running, they have a background adb track-jdwp
process which monitors for JDWP debug sessions on the device and captures them inside Android Studio. The result is that the "jdb ping" logic of ./mach run --debug
hangs forever trying to connect to the app.
The simple work-around is to close Android Studio, but it might be nice at the very least for ./mach run --debug
to detect Android Studio is running in background and give a warning..
Comment 1•23 days ago
|
||
The severity field is not set for this bug.
:polly, could you have a look please?
For more information, please visit BugBot documentation.
Flags: needinfo?(polly)
Updated•23 days ago
|
Severity: -- → S4
Flags: needinfo?(polly)
You need to log in
before you can comment on or make changes to this bug.
Description
•