Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. no more debugging in qtcreator
QtWS25 Last Chance

no more debugging in qtcreator

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
qtcreatordebugging
5 Posts 2 Posters 2.3k Views
  • 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.
  • S Offline
    S Offline
    skylendar
    wrote on last edited by
    #1

    hi there and thx for reading and answering if you can.

    I'm using qtcreator 4.7.0 on linux x86_64 and have been able so far to debug my project. However, for a couple of days, the debugging doesn't work anymore.

    gdb is launched .e.g.

    /usr/bin/gdb --tty=/tmp/QtCreator-mhJpju/outputcollector.KHGFVM -i mi
    

    qtcreator says:

    Setting up inferior...
    

    but nothing more. What's the matter... ?

    aha_1980A 1 Reply Last reply
    0
    • S skylendar

      hi there and thx for reading and answering if you can.

      I'm using qtcreator 4.7.0 on linux x86_64 and have been able so far to debug my project. However, for a couple of days, the debugging doesn't work anymore.

      gdb is launched .e.g.

      /usr/bin/gdb --tty=/tmp/QtCreator-mhJpju/outputcollector.KHGFVM -i mi
      

      qtcreator says:

      Setting up inferior...
      

      but nothing more. What's the matter... ?

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @skylendar

      please have a look in the debugger log (Windows > Views > Debugger log) if you see something unusual.

      Regards

      Qt has to stay free or it will die.

      S 1 Reply Last reply
      0
      • aha_1980A aha_1980

        Hi @skylendar

        please have a look in the debugger log (Windows > Views > Debugger log) if you see something unusual.

        Regards

        S Offline
        S Offline
        skylendar
        wrote on last edited by
        #3

        Ok, I got:

        Tools/QtCreator/share/qtcreator/debugger/')
        11python sys.path.append('/usr/bin/data-directory/python')
        12python from gdbbridge import *
        13python theDumper.loadDumpers({"token":13})
        14-interpreter-exec console "set target-async off"
        Debugging has failed
        15show version
        16show debug-file-directory
        17set print object on
        18set breakpoint pending on
        19set print elements 10000
        20set unwindonsignal on
        21set width 0
        22set height 0
        23set detach-on-fork off
        24python sys.path.insert(1, '/usr/local/opt/qt5.11/Tools/QtCreator/share/qtcreator/debugger/')
        25python sys.path.append('/usr/bin/data-directory/python')
        26python from gdbbridge import *
        27python theDumper.loadDumpers({"token":27})
        28-interpreter-exec console "set target-async off"
        Debugging has failed
        
        S 1 Reply Last reply
        0
        • S skylendar

          Ok, I got:

          Tools/QtCreator/share/qtcreator/debugger/')
          11python sys.path.append('/usr/bin/data-directory/python')
          12python from gdbbridge import *
          13python theDumper.loadDumpers({"token":13})
          14-interpreter-exec console "set target-async off"
          Debugging has failed
          15show version
          16show debug-file-directory
          17set print object on
          18set breakpoint pending on
          19set print elements 10000
          20set unwindonsignal on
          21set width 0
          22set height 0
          23set detach-on-fork off
          24python sys.path.insert(1, '/usr/local/opt/qt5.11/Tools/QtCreator/share/qtcreator/debugger/')
          25python sys.path.append('/usr/bin/data-directory/python')
          26python from gdbbridge import *
          27python theDumper.loadDumpers({"token":27})
          28-interpreter-exec console "set target-async off"
          Debugging has failed
          
          S Offline
          S Offline
          skylendar
          wrote on last edited by
          #4

          and also on the right panel of the display log, I saw:

          &"python from gdbbridge import *\n"
          >&"Traceback (most recent call last):\n"
          >&"  File \"<string>\", line 1, in <module>\n"
          >&"ModuleNotFoundError: No module named 'gdbbridge'\n"
          >&"Error while executing Python code.\n"
          >26^error,msg="Error while executing Python code."
          
          >&"python theDumper.loadDumpers({\"token\":27})\n"
          >&"Traceback (most recent call last):\n"
          >&"  File \"<string>\", line 1, in <module>\n"
          >&"NameError: name 'theDumper' is not defined\n"
          >&"Error while executing Python code.\n"
          >27^error,msg="Error while executing Python code."
          NOTE: ENGINE SETUP FAILED
          
          aha_1980A 1 Reply Last reply
          0
          • S skylendar

            and also on the right panel of the display log, I saw:

            &"python from gdbbridge import *\n"
            >&"Traceback (most recent call last):\n"
            >&"  File \"<string>\", line 1, in <module>\n"
            >&"ModuleNotFoundError: No module named 'gdbbridge'\n"
            >&"Error while executing Python code.\n"
            >26^error,msg="Error while executing Python code."
            
            >&"python theDumper.loadDumpers({\"token\":27})\n"
            >&"Traceback (most recent call last):\n"
            >&"  File \"<string>\", line 1, in <module>\n"
            >&"NameError: name 'theDumper' is not defined\n"
            >&"Error while executing Python code.\n"
            >27^error,msg="Error while executing Python code."
            NOTE: ENGINE SETUP FAILED
            
            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #5

            @skylendar

            you shortened the log, so I can't see the GDB version. Please check these.

            Also, GDB must be python enabled, and last the python dumper script must be loaded. Have you checked the directories?

            Regards

            Qt has to stay free or it will die.

            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