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. Cannot debug with GDB in Qt creator
Forum Updated to NodeBB v4.3 + New Features

Cannot debug with GDB in Qt creator

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++gdbgdb errorqt creatorpython
1 Posts 1 Posters 615 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.
  • M Offline
    M Offline
    Msmh
    wrote on last edited by Msmh
    #1

    Hi
    I am trying to debug a very simple console application in Qt creator 4.5.2 (Based on Qt 5.9.5 (GCC 7.3.0, 64 bit)), but when I do that, the debugging fails and logs this error:

    ...
    &"python sys.path.append('/gdb-9.2/build/gdb/data-directory/python')\n"
    >95^done
    
    >&"python from gdbbridge import *\n"
    >96^done
    
    >&"python theDumper.loadDumpers({\"token\":97})\n"
    >&"Traceback (most recent call last):\n"
    >&"  File \"<string>\", line 1, in <module>\n"
    >&"  File \"/usr/share/qtcreator/debugger/dumper.py\", line 2483, in loadDumpers\n"
    >&"    msg = self.setupDumpers()\n"
    >&"  File \"/usr/share/qtcreator/debugger/dumper.py\", line 2456, in setupDumpers\n"
    >&"    m = __import__(mod)\n"
    >&"ModuleNotFoundError: No module named 'opencvtypes'\n"
    >&"Error while executing Python code.\n"
    >97^error,msg="Error while executing Python code."
    dNOTE: ENGINE SETUP FAILED
    dState changed from EngineSetupRequested(1) to EngineSetupFailed(2) [master]
    <Debugging has failed
    dState changed from EngineSetupFailed(2) to DebuggerFinished(22) [master]
    
    dQUIT DEBUGGER REQUESTED IN STATE 22
    >98^done
    dCOOKIE FOR TOKEN 98 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?
    
    
    d
    dNON-CRITICAL TIMEOUT
    dCOMMANDS STILL IN PROGRESS:
    

    I don't know what is python dumper and also what on earth is opencvtypes??!!

    I tried gdb 8.2 and 9.2 and it fails the same way with both versions
    (and aslo python version 3.6 and 2.7)

    Another point is that out of Qt creator, GDB works properly!

    I built the application in Debug mode and added this line to *.pro file:

    CONFIG += qt debug
    

    but still no luck!

    So what should I do to make debugging works in Qt creator?

    Thanks.

    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