11

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.

Ready Android
  • 3,529
  • 2
  • 26
  • 40

1 Answers1

3

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.

Orlando Herrera
  • 3,481
  • 1
  • 34
  • 44
Parth Patel
  • 859
  • 2
  • 11
  • 28
  • 8
    This appears to be a setting for issue tracking server timeout. What does it have to do with adb? – alexisrozhkov Oct 24 '17 at 17:45
  • 1
    This also help for the Layout Inspector capture time out – Gugelhupf Mar 12 '20 at 10:17
  • 1
    doesnt work for me. With any value here the debugger closes in the same time – Grigory May 19 '20 at 19:44
  • The default 5000 milliseconds implies a 5 second timeout, not after 2 minutes. – vesperto Mar 12 '21 at 16:04
  • I was able to get around by disabling the "Show value tooltip" setting, by default it was on and set to 700 Millis for me. I turned this off and am able to debug now without the debug connection dropping. Located via: `Settings -> Build, Execution, Deployment -> Debugger -> Data Views`. I lose the tooltip but at least I can debug now – cking24343 Mar 15 '22 at 18:33