[Interest] Weird issue: Debugger won't start when qInstallMsgHandler is used

Mike Nolan me at mknln.com
Sat Sep 6 02:44:52 CEST 2014


On 9/5/2014 1:20 AM, Koehne Kai wrote:
>> Subject: Re: [Interest] Weird issue: Debugger won't start when  qInstallMsgHandler is used
>>
>> On Thursday 04 September 2014 11:57:33 Mike Nolan wrote:
>>> I cannot understand why this is, however. Is this a bug in
>>> QDeclarativeDebugServer or am I maybe breaking a rule about using
>>> qInstallMsgHandler? I have a slightly better workaround (always printing
>>> if the QML file hasn’t loaded yet) but I’d like to understand this better.
>> It's a bug in QDeclarativeDebugServer that it relies on qDebug to communicate
>> with Creator. Or it's a bug in Qt Creator that it expects a debugging message
> >from QDeclarativeDebugServer.
>> Please upgrade your Qt Creator first to 3.1 and then try again.
> Let's call it a feature with side-effects :)
>
> The setup of the QML debugger is such that the application (debuggee) opens a port in a specific range, and blocks until the debugger connects there (that is, if the ",block" argument has been passed to "-qmljsdebugger=", which Qt Creator does).
>
> Qt Creator again waits for a "QML: Waiting for connection on port..." line before it tries to connect to this port. Anyhow, if it doesn't get the message it should try to connect after 8 seconds in any case. But I just tried, and this indeed seems to not work currently. Please file a bug if you want to track this...
>
> Regards
>
> Kai
Thank you for the explanation :). I tried looking at the source of 
QDeclarativeDebugClient/Server but seemed to be going in circles.

I have filed QTCREATORBUG-12992.




More information about the Interest mailing list