Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Increase adb debug timeout in android studio

Application gets closed when I am debugging the app in Android Studio.

Actually, I am facing an issue when I am doing debug to my android app in Android Studio. Application is getting close at some of the breakpoint execution. These app close breakpoints are not same every time. App debug mode is not happening more than 2 minutes, after a time period ADB debug connection finish.

I don't know this is due to the ADB connection timeout problem or something else?

I found this link Increase Android Emulator Timeout time for the Eclipse but nothing for Android Studio.

Any suggestion will be appreciated.

like image 999
Ready Android Avatar asked Jan 04 '17 06:01

Ready Android


People also ask

What is ADB JDWP?

An adb device daemon runs on the device or emulator and provides a means for the adb host daemon to communicate with the device or emulator. JDWP debugger. The Dalvik VM (Virtual Machine) supports the JDWP protocol to allow debuggers to attach to a VM.

How do I enable debug on ADB?

Enable adb debugging on your device To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom. On some devices, the Developer options screen might be located or named differently.


1 Answers

Emulator Set timeout value:

enter image description here

First Open Android Studio You have to move in File -> Setting Then Click on Task option from the vertical-left sidebar. Then the Connection timeout option should be there. In textbox you can specify your value in milliseconds. By default it 5000 milliseconds but you can changed it.

like image 51
Parth Patel Avatar answered Sep 17 '22 13:09

Parth Patel