Having trouble with Qt Creator Debugging
-
When it hangs: open the view "Debugger Log" and click the little button "repeat last command for debug reasons".
I guess it will be fixed soon.
-
Hi and welcome to devnet,
Xcode 6 has brought some modification that has break the support for lldb so you might be hit by that. Have a look at the interest mailing list thread called "LLDB hangs while being launched on Mac OS X"
It might be of use
Hope it helps
-
I also encountered that issue with xcode6.
Hoping Qt release a new version to fix this. -
Thank you so much ! I'll try both and let you know.
-
SGaist
I can not find the exact thread you might be referring to but the following search
http://qt-project.org/search?search=LLDB+hangs
doesn't yield much help ... or shall I say solution ; )vemod
The method you suggest gives me the following output.
<3{"cmd":"","token":3}
dLldb stdout:
d
dWARNING="**** CAUGHT EXCEPTION: MAIN LOOP ****",
d
dLldb stdout: pid="15633"@
dstate="enginerunandinferiorrunok"@
dNOTE: ENGINE RUN AND INFERIOR RUN OK
sRunning.
dState changed from EngineRunRequested(7) to InferiorRunOk(11) [master]
dLldb stdout: event={type="1",data="0x7fc502f521b0 Event: broadcaster = 0x7fc503244030 (lldb.process), type = 0x00000001 (state-changed), data = { process = 0x7fc503244000 (pid = 15633), state = running}",msg="None",flavor="Process::ProcessEventData",state="6"}@
dstate="running"@
dNOTE: INFERIOR RUN OK - REPEATED.
dLldb stdout:
d
dWARNING="Traceback (most recent call last):
d
d File '/Applications/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py', line 1703, in doit
d db.execute(convertHash(json.loads(line)))
d
d File '/Applications/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py', line 1664, in execute
d getattr(self, args['cmd'])(args)
d
dAttributeError: Dumper instance has no attribute ''
d",
d
dLldb stdout: event={type="4",data="0x7fc502d922d0 Event: broadcaster = 0x7fc503244030 (lldb.process), type = 0x00000004 (stdout-available), data = { process = 0x7fc503244000 (pid = 15633), state = running}",msg="None",flavor="Process::ProcessEventData",state="6"}@
doutput={channel="stdout",data="514d4c20646562756767696e6720697320656e61626c65642e204f6e6c7920757365207468697320696e2061207361666520656e7669726f6e6d656e742e0d0a"}@
QML debugging is enabled. Only use this in a safe environment. -
What do you all think ... Am I attempting the impossible here ? Shall I try uninstall xcode and install and earlier version?
-
-
Well done guys thank you so much !
-
Sorry turigeza... I have the same trouble, I had read the http://permalink.gmane.org/gmane.comp.lib.qt.user/13546. I had found the lldbbridge.py file in this address: ~/Qt5.3.2/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py
the patch say this
@
--- a/share/qtcreator/debugger/lldbbridge.py
+++ b/share/qtcreator/debugger/lldbbridge.py
<at> <at> -667,8 +667,9 <at> <at> class Dumper(DumperBase):
def runEngine(self, _):-
self.prepare() s = threading.Thread(target=self.loop, args=[]) s.start()
- def loop(self):
- def prepare(self):
error = lldb.SBError()
listener = self.debugger.GetListener()
<at> <at> -710,5 +711,7 <at> <at> class Dumper(DumperBase):
self.report('pid="%s"' % self.process.GetProcessID())
self.reportState("enginerunandinferiorrunok")- def loop(self):
event = lldb.SBEvent() -
listener = self.debugger.GetListener() while True:
@
but I didn't know what to do with this part:
@<at> <at> -710,5 +711,7 <at> <at> class Dumper(DumperBase):
self.report('pid="%s"' % self.process.GetProcessID())
self.reportState("enginerunandinferiorrunok")- def loop(self):
event = lldb.SBEvent() -
listener = self.debugger.GetListener() while True:@
I really didn't know what to do with this part... can you giveme some advice ?
I have OS X 10.9.5
best regards
Freddy
-
-
Hi Freddy,
I have posted the wrong link sorry ... it was late last night.
The patch.
https://codereview.qt-project.org/#/c/95516/Direct link to the new python file.
https://codereview.qt-project.org/cat/95516,2,share/qtcreator/debugger/lldbbridge.py^0I didn't try to change the file line by line just made a backup of the original and put the new one in place.
I hope it helps.
Geza
-
Hi Geza...
I had overwrite it the original file for this one and when I try to debbug my code the console say:
@Debugging starts
Debugging has finished@nothing happend and my program doesn't run ?
I'm using qt5.3.2
sory for ask again
-
Hi,
I double checked for you. Downloaded the file from the link I gave you above (the direct download link). I went and replace my /Applications/Qt Creator.app/Contents/Resources/debugger/lldbbridge.py file and presto it works.
So it is def the file I have used. I would happily help but i am so new to this : ) I can't think of anything else ... All I can say it works for me.
Geza
-
Thank you my friend, now it's work for me
best regards
-
Magic :))