Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

no more debugging in qtcreator



  • 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... ?


  • Lifetime Qt Champion

    Hi @skylendar

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

    Regards



  • 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
    


  • 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
    

  • Lifetime Qt Champion

    @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


Log in to reply