Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Having trouble with Qt Creator Debugging
Forum Updated to NodeBB v4.3 + New Features

Having trouble with Qt Creator Debugging

Scheduled Pinned Locked Moved General and Desktop
16 Posts 5 Posters 5.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    turigeza
    wrote on last edited by
    #7

    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.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      turigeza
      wrote on last edited by
      #8

      What do you all think ... Am I attempting the impossible here ? Shall I try uninstall xcode and install and earlier version?

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vemod
        wrote on last edited by
        #9

        "https://bugreports.qt-project.org/browse/QTCREATORBUG-13077":https://bugreports.qt-project.org/browse/QTCREATORBUG-13077

        1 Reply Last reply
        0
        • T Offline
          T Offline
          turigeza
          wrote on last edited by
          #10

          Well done guys thank you so much !

          http://permalink.gmane.org/gmane.comp.lib.qt.user/13546

          1 Reply Last reply
          0
          • freddy311082F Offline
            freddy311082F Offline
            freddy311082
            wrote on last edited by
            #11

            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

            1 Reply Last reply
            0
            • T Offline
              T Offline
              turigeza
              wrote on last edited by
              #12

              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^0

              I 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

              1 Reply Last reply
              0
              • freddy311082F Offline
                freddy311082F Offline
                freddy311082
                wrote on last edited by
                #13

                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

                1 Reply Last reply
                0
                • T Offline
                  T Offline
                  turigeza
                  wrote on last edited by
                  #14

                  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

                  1 Reply Last reply
                  0
                  • freddy311082F Offline
                    freddy311082F Offline
                    freddy311082
                    wrote on last edited by
                    #15

                    Thank you my friend, now it's work for me

                    best regards

                    1 Reply Last reply
                    0
                    • T Offline
                      T Offline
                      turigeza
                      wrote on last edited by
                      #16

                      Magic :))

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved