Cannot debug with GDB in Qt creator
Unsolved
General and Desktop
-
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.