Qt Android failed the debugging on the real device
-
I'm trying the Qt 5.3 and 5.4 on Windows 8.1 64bit.
When I execute the built app for debugging on my real device(Android 4.2.2), Qt shows that error message and an app crashed(It works at the case of launching the app without debugger).
"Failed to start application - Connecting to remote server failed: Attaching to process [number] failed".This is the log shows on "Application Output".
I/Qt JAVA (15222): DEBUGGER: extra parameters: Bundle[{gdbserver_command=/data/data/org.qtproject.example.QtTest/lib/libgdbserver.so --multi +/data/data/org.qtproject.example.QtTest/debug-socket, debug_ping=true, gdbserver_socket=/data/data/org.qtproject.example.QtTest/debug-socket, ping_socket=org.qtproject.example.QtTest.ping_pong_socket}]
I/Qt JAVA (15222): DEBUGGER: removing gdb socket /data/data/org.qtproject.example.QtTest/debug-socket
I/Qt JAVA (15222): DEBUGGER: starting /data/data/org.qtproject.example.QtTest/lib/libgdbserver.so --multi +/data/data/org.qtproject.example.QtTest/debug-socket
I/Qt JAVA (15222): DEBUGGER: gdbserver started
I/Qt JAVA (15222): DEBUGGER: waiting for socket at /data/data/org.qtproject.example.QtTest/debug-socket, attempt 0
I/Qt JAVA (15222): DEBUGGER: waiting for socket at /data/data/org.qtproject.example.QtTest/debug-socket, attempt 1
I/Qt JAVA (15222): DEBUGGER: socket ok
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Debug socket accepted
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
I/Qt JAVA (15222): DEBUGGER: Waiting for debug socket connect
I/Qt JAVA (15222): DEBUGGER: go to sleep
Debugging has finished"org.qtproject.example.QtTest" terminated.
Is this a debugger's problem or my device?
-
Hi,
4.5 or 5.4 ? Also which version of Android are you connecting to ? Which OS are you running on ?