Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is the app keeps waiting for Debugger?

In Android API 24, custom phone 7.0.0

When I launch application in normal mode it works perfectly but whenever I switch to debug mode it shows this messages in logcat and keep showing Waiting for Debugger Dialog.

W/ActivityThread: Application com.xxx.xxxxx is waiting for the debugger on port 8100... I/System.out: Sending WAIT chunk

enter image description here

What I've tried so far:

  1. Android Studio "waiting for debugger"

Issue : Doing Kill again and again is tedious task as this happens every time with debug mode

  1. Why is the app waiting for the debugger when its not connected to computer?

Issue : This works temporary again doing debug(second or third time) will give same dialog again

  1. Debugging with Android Studio stuck at "Waiting For Debugger" forever

I can't believe a device reboot is the only solution.

The Question?

Is there any other solution to this problem?

like image 280
Dipali Shah Avatar asked Jan 31 '18 12:01

Dipali Shah


People also ask

How to debug an app that is waiting for debugger?

Problem is that your app / device is configured to wait for debugger. In this case it is waiting for debugger before continuing execution of. Attach debugger or run in debug mode. You can do this in Android Studio. Buttons to attach debugger and run in debug mode are located next to normal run mode (Bug and Bug with arrow).

How do I Turn Off the waiting for debug mode?

You need to go to "Settings" --> "Developer Options" --> "Select debug app" on you Actual Device. After clicking on "Select debug app", there will be a list of your installed apps, Select the app you want to run. That is it you will not see the "Waiting For Debugger" message any more.

Why can't I debug with as?

This probably means the connection between the device and the debugger failed. Normally this is caused by a debugger crash on the device or a faulty cable (or bad network connection if debugging over WiFi). But if it works with AS, I'm not sure what's going on.

How can I debug my Android app remotely?

4) And you can also Run> Debug 'App'. The device will say "Waiting for Debugger" for a moment and then Android Studio will start up a Debugger Console and help you debug your android device app remotely! Show activity on this post. My PC was running low on memory and this problem appeared quite often.


1 Answers

You might have added your app in Select app to be debugged on your phone. In Settings -> Developer Options -> Select app to be debugged

To resolve this, go to Select app to be debugged and click on No apps

like image 114
mahmoud mansour Avatar answered Oct 13 '22 13:10

mahmoud mansour