Unable to use QML Debugging - QAbstractSocket issue ?
-
Dear all,
I really would appreciate your help on this issue I am facing.
I am working on a C++/QML project and I cannot make the QML Debugger work. I can debug the C++ part but not the QML part. I keep having the following error messages in the journal when running my program in debug mode:QML Debugger: Socket state changed to QAbstractSocket::HostLookupState
QML Debugger: Socket state changed to QAbstractSocket::ConnectingStateQML Debugger: Socket state changed to QAbstractSocket::UnconnectedState
QML Debugger: Error: QAbstractSocket::ConnectionRefusedErrorPlease note that I have :
- Enable QML debugging and profiling (build step)
- Enable QML (Run > Debugger Settings)
I am using Qt 5.11.1 MSVC2017_64bit, Qt creator 4.7.0
Thank you for your help !
-
It looks like the debugger tries to connect to the application via a port, but that fails.
What does the Application Output of the app say? Do you maybe have a firewall that blocks localhost connections?
-
It looks like the debugger tries to connect to the application via a port, but that fails.
What does the Application Output of the app say? Do you maybe have a firewall that blocks localhost connections?
Thank you @kkoehne for trying to help.
The application output only displays : "15:17:30: Debugging starts"
I think you are right when you say that it must be a firewall related issue.... so:- I tried to debug one of the QML example (Map Viewer) and the MS Windows firewall pop up asking me if I allowed this application which I did. I then could debug the example without problem.
- I even tried removing the QML example from the authorized application list and when debugging the same pop-up appears again
- I have never seen this popup when debugging my own application
- I tried anyway to add my .exe in the authorized applications list but it does not change anything
I am really wondering what I am missing here...
-
Thank you @kkoehne for trying to help.
The application output only displays : "15:17:30: Debugging starts"
I think you are right when you say that it must be a firewall related issue.... so:- I tried to debug one of the QML example (Map Viewer) and the MS Windows firewall pop up asking me if I allowed this application which I did. I then could debug the example without problem.
- I even tried removing the QML example from the authorized application list and when debugging the same pop-up appears again
- I have never seen this popup when debugging my own application
- I tried anyway to add my .exe in the authorized applications list but it does not change anything
I am really wondering what I am missing here...
@Benjamin07-0 said in Unable to use QML Debugging - QAbstractSocket issue ?:
I think you are right when you say that it must be a firewall related issue
To complete... I actually tried to turn off the firewall temporarily, restart Qt Creator, re-run my application in debug mode but no luck. Still the same error message...
-
Just an update on this issue. The problem is now solved for a reason I ignore. I haven't changed anything (well at least that I remember of) on the project configuration but the QML debugger is now operational. Several thoughts:
- windows (firewall) update
- antivirus update
Anyway I mark the problem as resolved even if no clear and repeatable solution has been identified.