Unable to debug with dual debugger on Nokia 7.1 - android

I'm trying to debug NDK application on my Nokia 7.1 from Android Studio (3.4.1) but I'm getting this error:
Error running 'app': Unable to open debugger port (localhost:8600): java.io.IOException
I can connect to device with ndk, run app without debugging and even debug application using Java debugger (Run/Debug configurations -> Debugger -> Debug type: Java). Also debugging application C code is working on another phone (CAT S60).
First I was thinking about debugger connection timeout, so I increased it to 500000ms. This didn't help.
Attaching to running process is working but only Java or only Native debugger. Dual debugger failed to connect Java part and application is waiting for debugger.
Here is message from debugger console:
Debugger attached to process 29042
Timed out waiting for java debugger to attach
Process finished with exit code 0
Does anybody have experience how to run dual debugger on Nokia 7.1?

Related

Qt android debugger adb error Address already in use

Im trying to debug android application using Qt Creator and getting the following error:
W ActivityThread: Application org.qtproject.example.tid_trains_android10 is waiting for the debugger on port 8100...
adb: error: cannot bind listener: Address already in use
17:47:24: Failed to forward JDB debugging ports.
When I try to see the open ports Im not seeing anything listening at 8100
I searched the net but found nothing.
Thanks in advance. :)

Unable to open debugger port (8600) Android Studio in MAC

Error running 'Android Debugger (8600)': Unable to open debugger port (localhost:8600): java.io.IOException "handshake failed - connection prematurally closed"
This is the error I am getting while trying to attach the debugger. I have tried some of the possible solutions from Stack Overflow and Google nothing is worked for me.
Note: I am using Mac and Android Studio version is 3.4.1

Android Instant Apps: How to debug an instant app?

When I debug my instant app on Android Studio, the debugger attaches to instant app process and pauses execution at most breakpoints. However it seems to ignore breakpoints at my main activity's onCreate method. I've tried "Debug" and "Attach Debugger to Android Process" options. What am I missing?
Basic information about how to use Android Studio debugger to debug an Android app is available at Developer Documentation Debug Your App
.
Android Studio debugger works normally most of the time when debugging an instant app. However, you will notice that the debugger will fail to stop at breakpoints early in the app's lifecycle (such as Application.onCreate or Activity.onCreate) on devices running Android N and below.
When your instant app is up and running, it runs under your app's package name. However, there is a short period of time during app startup when it runs under a temporary package name, in the following form:
com.google.android.instantapps.supervisor.isolated[0-9]+
This temporary name is assigned by the runtime. Because Android Studio is not aware of this name, the debugger will not attach to this process.
The workaround is to find out this temporary name and use adb to set the app to debug. This can be done by running the following command in terminal before running your app. It will print out the name when your app starts.
=> adb shell 'while true; do ps | grep com.google.android.instantapps.supervisor.isolated; sleep 1; done'
u0_i6 31908 630 1121664 29888 0 00ea57eed4 R com.google.android.instantapps.supervisor.isolated15
Once you identify the package name, use the following command which will pause and make your instant app process to wait for the debugger. Then attach the debugger normally, but choosing the temporary process name in the Choose Process window by clicking on “Show all processes”.
=> adb shell am set-debug-app -w --persistent com.google.android.instantapps.supervisor.isolated15
I had also problems recently debugging instant apps.
with multiple log messages
"Waiting for application to start debug server"
in the debug window and after several retrials
"Could not connect to remote process. Aborting debug session."
The way I solved the issue is
by using the "Attach To Process" option from Android studio "Run" menu.

Android Studio debugger does not stop at breakpoints for ADB over TCP

I am trying to debug my android application on a device connected via local-network.
I have used following instructions to create ADB with device over TCP:
Run/install/debug Android applications over Wi-Fi
I can install the app and see the logs but
i can not debug the application because Android studio doesn't stop at any breakpoint.
Following is Debug console's log:
Waiting for application to come online: com.example.tosc.notesync.test
| com.example.tosc.notesync
Connecting to com.example.tosc.notesync
Is it really possible to debug the android app line by line over wireless connection?

Unable to open debugger port : java.net.SocketException "Software caused connection abort: recv failed"

I just want to debug my app. First I click the debug button, then click attach debugger to Android process and select my app process, then I get the following message:
Error running Android Debugger (8614):
Unable to open debugger port : java.net.SocketException "Software caused connection abort: recv failed"
Notice: I'm using Genymotion emulator.
I get that message when i'm trying to attach the debugger when the debugger is already attached. When you click on the debug button it runs your app and attach the debbuger to the device.

Categories

Resources