I made a mistake somewhere in my code that my Android application will work when I turn off the network in the emulator, while the HTTPClient application makes a request.
But I canβt debug it, because when I disconnected the network, I also lost the ADB connection. Thus, I do not see which exception is causing the crash.
I tried disconnecting the network:
- F8
- Set "Data" to "Unregistered" or "Denied" in the management of the DDMS emulator.
I can put my Mac offline and ADB will not work, but unfortunately I cannot reproduce this failure.
Is there a way to disable the network in the emulator while keeping the ADB alive? I mainly need access to LogCat records.
Thanks!
source share