Debugger doesn't connect automatically after app is installed

已回答

Have problem which seems appear quite often: 

http://stackoverflow.com/questions/21625628/android-studio-starting-in-debug-mode-by-default

http://stackoverflow.com/questions/27436050/debugging-with-android-studio-stuck-at-waiting-for-debugger-forever

http://stackoverflow.com/questions/16264685/application-struck

http://stackoverflow.com/questions/4693694/waiting-for-debugger-on-android-using-netbeans

http://stackoverflow.com/questions/40838494/waiting-for-debugger-message-stuck-when-debug-app

All solutions are about the same: restart device, restart machine, kill adb, check if only one instance of adb is running, check if port is available, etc. But currently all solutions doesn't work. AndroidStudio works perfectly but not IntelliJ. I run the same projects, IntelliJ and AndroidStudio have the same debugger settings and same Android SDK. And it happens with any android project.

Adb logs says nothing:

$ adb shell am start -n "su.levenetc.androidplayground/su.levenetc.androidplayground.activities.BootActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Client not ready yet..Waiting for process to come online
Connected to process 5054 on device emulator-5556
W/ActivityThread: Application su.levenetc.androidplayground is waiting for the debugger on port 8100...
I/System.out: Sending WAIT chunk

If I try to `Attach debugger to Android process` IntelliJ connects and works as expected.

0
正式评论

Please report a bug at https://youtrack.jetbrains.com/issues/IDEA and attach a sample project with the steps to reproduce.

Avatar
Permanently deleted user

@Eugene -- I filed a report on what looks like the same bug: https://youtrack.jetbrains.com/issue/IDEA-166153. You might want to follow that.

1

请先登录再写评论。