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. Debugging has failed
QtWS25 Last Chance

Debugging has failed

Scheduled Pinned Locked Moved Solved General and Desktop
debug windowdebug errordebuggingdebugger engine
5 Posts 3 Posters 2.8k 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.
  • O Offline
    O Offline
    OlegK
    wrote on 11 Apr 2018, 21:38 last edited by OlegK 4 Nov 2018, 21:39
    #1

    Hi all,
    I am trying to use QtCreator to debug my test application but unable to start it in debug mode:
    This is debug log:

    Note: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under the control of Qt Creator, for instance in swap files.
    wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share.
    w
    
    dATTEMPT SYNC
    
    sStarting debugger "GdbEngine" for ABI "x86-windows-msys-pe-32bit"...
    dStart parameters: 'qt_slot1' mode: 1
    dABI: x86-windows-msys-pe-32bit
    dLanguages: c++ 
    dExecutable: D:\libs\qt\build-qt_samples-Desktop_Qt_5_10_1_MinGW_32bit-Debug\modules\_qt_slot\qt_slot1\debug\qt_slot1.exe  [terminal]
    dDirectory: D:\libs\qt\build-qt_samples-Desktop_Qt_5_10_1_MinGW_32bit-Debug\modules\_qt_slot\qt_slot1
    dDebugger: D:\libs\qt\qt-lib\Tools\mingw530_32\bin\gdb.exe
    dProject: D:\libs\qt\qt_samples
    dAdditional Search Directories:
    dSysroot: 
    dDebug Source Location: 
    dDebugger settings:
    dAdditionalArguments:   (default: )
    dAdjustBreakpointLocations: true  (default: true)
    dAllPluginBreakpoints: true  (default: true)
    dAlwaysAdjustColumnWidths: true  (default: true)
    dAutoDerefPointers: true  (default: true)
    dAutoEnrichParameters: true  (default: true)
    dAutoQuit: false  (default: false)
    dBreakEvent:   (default: )
    dBreakOnAbort: false  (default: false)
    dBreakOnCatch: false  (default: false)
    dBreakOnCrtDbgReport: false  (default: false)
    dBreakOnFatal: false  (default: false)
    dBreakOnThrow: false  (default: false)
    dBreakOnWarning: false  (default: false)
    dBreakpointCorrection: true  (default: true)
    dBreakpointsFullPath: false  (default: false)
    dCDB_Console: false  (default: false)
    dCloseBuffersOnExit: false  (default: false)
    dCloseMemoryBuffersOnExit: true  (default: true)
    dDisplayStringLimit: 100  (default: 100)
    dEnableReverseDebugging: false  (default: false)
    dExtraDumperFile:   (default: )
    dFontSizeFollowsEditor: false  (default: false)
    dGdbCustomDumperCommands:   (default: )
    dGdbPostAttachCommands:   (default: )
    dGdbStartupCommands:   (default: )
    dIdentifyDebugInfoPackages: false  (default: false)
    dIgnoreFirstChanceAccessViolation: false  (default: false)
    dIntelFlavor: false  (default: false)
    dLoadGdbDumpers2: false  (default: false)
    dLoadGdbInit: true  (default: true)
    dLogTimeStamps: false  (default: false)
    dMaximalStackDepth: 20  (default: 20)
    dMaximalStringLength: 10000  (default: 10000)
    dMultiInferior: false  (default: false)
    dNoPluginBreakpoints: false  (default: false)
    dQmlInspector.ShowAppOnTop: false  (default: false)
    dRaiseOnInterrupt: true  (default: true)
    dRegisterForPostMortem: false  (default: false)
    dSelectedPluginBreakpoints: false  (default: false)
    dSelectedPluginBreakpointsPattern: .*  (default: .*)
    dShowQObjectNames2: true  (default: true)
    dShowQmlObjectTree: true  (default: true)
    dShowQtNamespace: true  (default: true)
    dShowStandardNamespace: true  (default: true)
    dShowThreadNames: false  (default: false)
    dSkipKnownFrames: false  (default: false)
    dSortStructMembers: true  (default: true)
    dSourcePaths:   (default: )
    dStationaryEditorWhileStepping: false  (default: false)
    dSwitchModeOnExit: false  (default: false)
    dSymbolPaths:   (default: )
    dTargetAsync: false  (default: false)
    dUseAddressInBreakpointsView: false  (default: false)
    dUseAddressInStackView: false  (default: false)
    dUseAlternatingRowColours: false  (default: false)
    dUseCodeModel: true  (default: true)
    dUseDebuggingHelper: true  (default: true)
    dUseDynamicType: true  (default: true)
    dUseMessageBoxForSignals: true  (default: true)
    dUsePythonDumper: true  (default: true)
    dUseToolTips: true  (default: true)
    dUseToolTipsInBreakpointsView: true  (default: false)  ***
    dUseToolTipsInLocalsView: false  (default: false)
    dUseToolTipsInStackView: true  (default: true)
    dWarnOnReleaseBuilds: true  (default: true)
    dWatchdogTimeout: 20  (default: 20)
    dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
    dCALL: SETUP ENGINE
    dTRYING TO START ADAPTER
    dENABLING TEST CASE: 0
    dSTARTING D:/libs/qt/qt-lib/Tools/mingw530_32/bin/gdb.exe -i mi
    dGDB STARTED, INITIALIZING IT
    <1show version
    <2show debug-file-directory
    <3set print object on
    <4set breakpoint pending on
    <5set print elements 10000
    <6set unwindonsignal on
    <7set width 0
    <8set height 0
    sSetting up inferior...
    <9set substitute-path C:/work/build/qt5_workdir/w/s D:/libs/qt/qt-lib/5.10.1/mingw53_32
    <10set substitute-path Q:/qt5_workdir/w/s D:/libs/qt/qt-lib/5.10.1/mingw53_32
    <11set substitute-path c:/Users/qt/work/install D:/libs/qt/qt-lib/5.10.1/mingw53_32
    <12set substitute-path c:/users/qt/work/qt D:/libs/qt/qt-lib/5.10.1/mingw53_32
    <13python sys.path.insert(1, 'D:/libs/qt/qt-lib/Tools/QtCreator/share/qtcreator/debugger/')
    <14python sys.path.append('D:/libs/qt/qt-lib/Tools/mingw530_32/bin/data-directory/python')
    <15python from gdbbridge import *
    <16python theDumper.loadDumpers({"token":16})
    dUNEXPECTED GDB STDERR: Traceback (most recent call last):
    d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/__init__.py", line 144, in auto_load_packages
    d    __import__(modname)
    d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/command/frame_filters.py", line 21, in <module>
    d    import copy
    d  File "C:\Python27\Lib/copy.py", line 52, in <module>
    d    import weakref
    d  File "C:\Python27\Lib/weakref.py", line 14, in <module>
    d    from _weakref import (
    dImportError: cannot import name _remove_dead_weakref
    d
    dTraceback (most recent call last):
    d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/__init__.py", line 144, in auto_load_packages
    d    __import__(modname)
    d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/command/pretty_printers.py", line 19, in <module>
    d    import copy
    d  File "C:\Python27\Lib/copy.py", line 52, in <module>
    d    import weakref
    d  File "C:\Python27\Lib/weakref.py", line 14, in <module>
    d    from _weakref import (
    dImportError: cannot import name _remove_dead_weakref
    d
    dUNEXPECTED GDB STDERR: Traceback (most recent call last):
    d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/__init__.py", line 144, in auto_load_packages
    d    __import__(modname)
    d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/command/type_printers.py", line 17, in <module>
    d    import copy
    d  File "C:\Python27\Lib/copy.py", line 52, in <module>
    d    import weakref
    d  File "C:\Python27\Lib/weakref.py", line 14, in <module>
    d    from _weakref import (
    dImportError: cannot import name _remove_dead_weakref
    d
    >=thread-group-added,id="i1"
    >~"GNU gdb (GDB) 7.10.1\n"
    >~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
    >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
    >~"This GDB was configured as \"i686-w64-mingw32\".\nType \"show configuration\" for configuration details."
    >~"\nFor bug reporting instructions, please see:\n"
    >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
    >~"For help, type \"help\".\n"
    >~"Type \"apropos word\" to search for commands related to \"word\".\n"
    
    >&"show version\n"
    >~"GNU gdb (GDB) 7.10.1\n"
    >~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
    >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
    >~"This GDB was configured as \"i686-w64-mingw32\".\nType \"show configuration\" for configuration details."
    >~"\nFor bug reporting instructions, please see:\n"
    >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
    >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
    >~"For help, type \"help\".\n"
    >~"Type \"apropos word\" to search for commands related to \"word\".\n"
    >1^done
    dPARSING VERSION: 1^done
    dSUPPORTED GDB VERSION GNU gdb (GDB) 7.10.1
    dCopyright (C) 2015 Free Software Foundation, Inc.
    dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    dThis is free software: you are free to change and redistribute it.
    dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    dand "show warranty" for details.
    dThis GDB was configured as "i686-w64-mingw32".
    dType "show configuration" for configuration details.
    dFor bug reporting instructions, please see:
    d<http://www.gnu.org/software/gdb/bugs/>.
    dFind the GDB manual and other documentation resources online at:
    d<http://www.gnu.org/software/gdb/documentation/>.
    dFor help, type "help".
    dType "apropos word" to search for commands related to "word".
    dGNU gdb (GDB) 7.10.1
    dCopyright (C) 2015 Free Software Foundation, Inc.
    dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    dThis is free software: you are free to change and redistribute it.
    dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    dand "show warranty" for details.
    dThis GDB was configured as "i686-w64-mingw32".
    dType "show configuration" for configuration details.
    dFor bug reporting instructions, please see:
    d<http://www.gnu.org/software/gdb/bugs/>.
    dFind the GDB manual and other documentation resources online at:
    d<http://www.gnu.org/software/gdb/documentation/>.
    dFor help, type "help".
    dType "apropos word" to search for commands related to "word".
    dUSING GDB VERSION: 71001, BUILD: 2015
    <17-interpreter-exec console "set target-async off"
    
    >&"show debug-file-directory\n"
    >~"The directory where separate debug symbols are searched for is \"d:\\c\\mingw530\\i686-530-posix-dwarf-rt_v4-rev0\\mingw32\\lib\\debug\".\n"
    >2^done
    
    >&"set print object on\n"
    >=cmd-param-changed,param="print object",value="on"
    >3^done
    
    >&"set breakpoint pending on\n"
    >=cmd-param-changed,param="breakpoint pending",value="on"
    >4^done
    
    >&"set print elements 10000\n"
    >=cmd-param-changed,param="print elements",value="10000"
    >5^done
    
    >&"set unwindonsignal on\n"
    >=cmd-param-changed,param="unwindonsignal",value="on"
    >6^done
    
    >&"set width 0\n"
    >=cmd-param-changed,param="width",value="4294967295"
    >7^done
    
    >&"set height 0\n"
    >8^done
    
    >&"set substitute-path C:/work/build/qt5_workdir/w/s D:/libs/qt/qt-lib/5.10.1/mingw53_32\n"
    >9^done
    
    >&"set substitute-path Q:/qt5_workdir/w/s D:/libs/qt/qt-lib/5.10.1/mingw53_32\n"
    >10^done
    
    >&"set substitute-path c:/Users/qt/work/install D:/libs/qt/qt-lib/5.10.1/mingw53_32\n"
    >11^done
    
    >&"set substitute-path c:/users/qt/work/qt D:/libs/qt/qt-lib/5.10.1/mingw53_32\n"
    >12^done
    
    >&"python sys.path.insert(1, 'D:/libs/qt/qt-lib/Tools/QtCreator/share/qtcreator/debugger/')\n"
    >13^done
    
    >&"python sys.path.append('D:/libs/qt/qt-lib/Tools/mingw530_32/bin/data-directory/python')\n"
    >14^done
    
    >&"python from gdbbridge import *\n"
    >&"Traceback (most recent call last):\n"
    >&"  File \"<string>\", line 1, in <module>\n"
    >&"  File \"D:/libs/qt/qt-lib/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py\", line 40, in <module>\n"
    >&"    from dumper import *\n"
    >&"  File \"D:/libs/qt/qt-lib/Tools/QtCreator/share/qtcreator/debugger/dumper.py\", line 28, in <module>\n"
    >&"    import copy\n"
    >&"  File \"C:\\Python27\\Lib/copy.py\", line 52, in <module>\n"
    >&"    import weakref\n"
    >&"  File \"C:\\Python27\\Lib/weakref.py\", line 14, in <module>\n"
    >&"    from _weakref import (\n"
    >&"ImportError: cannot import name _remove_dead_weakref\n"
    >&"Error while executing Python code.\n"
    >15^error,msg="Error while executing Python code."
    
    >&"python theDumper.loadDumpers({\"token\":16})\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"
    >16^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(17) [master]
    
    dQUIT DEBUGGER REQUESTED IN STATE 17
    >17^done
    dCOOKIE FOR TOKEN 17 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?
    

    My environment:

    • Windows10 x64,

    • Qt Creator 4.6.0

    • Qt 5.10.1

    • MinGW 5.3.0 32bit for C++

    What am I doing wrong, where is my mistake and how to solve that issue.
    Thanks a lot.

    jsulmJ 1 Reply Last reply 12 Apr 2018, 04:34
    0
    • O OlegK
      11 Apr 2018, 21:38

      Hi all,
      I am trying to use QtCreator to debug my test application but unable to start it in debug mode:
      This is debug log:

      Note: This log contains possibly confidential information about your machine, environment variables, in-memory data of the processes you are debugging, and more. It is never transferred over the internet by Qt Creator, and only stored to disk if you manually use the respective option from the context menu, or through mechanisms that are not under the control of Qt Creator, for instance in swap files.
      wYou may be asked to share the contents of this log when reporting bugs related to debugger operation. In this case, make sure your submission does not contain data you do not want to or you are not allowed to share.
      w
      
      dATTEMPT SYNC
      
      sStarting debugger "GdbEngine" for ABI "x86-windows-msys-pe-32bit"...
      dStart parameters: 'qt_slot1' mode: 1
      dABI: x86-windows-msys-pe-32bit
      dLanguages: c++ 
      dExecutable: D:\libs\qt\build-qt_samples-Desktop_Qt_5_10_1_MinGW_32bit-Debug\modules\_qt_slot\qt_slot1\debug\qt_slot1.exe  [terminal]
      dDirectory: D:\libs\qt\build-qt_samples-Desktop_Qt_5_10_1_MinGW_32bit-Debug\modules\_qt_slot\qt_slot1
      dDebugger: D:\libs\qt\qt-lib\Tools\mingw530_32\bin\gdb.exe
      dProject: D:\libs\qt\qt_samples
      dAdditional Search Directories:
      dSysroot: 
      dDebug Source Location: 
      dDebugger settings:
      dAdditionalArguments:   (default: )
      dAdjustBreakpointLocations: true  (default: true)
      dAllPluginBreakpoints: true  (default: true)
      dAlwaysAdjustColumnWidths: true  (default: true)
      dAutoDerefPointers: true  (default: true)
      dAutoEnrichParameters: true  (default: true)
      dAutoQuit: false  (default: false)
      dBreakEvent:   (default: )
      dBreakOnAbort: false  (default: false)
      dBreakOnCatch: false  (default: false)
      dBreakOnCrtDbgReport: false  (default: false)
      dBreakOnFatal: false  (default: false)
      dBreakOnThrow: false  (default: false)
      dBreakOnWarning: false  (default: false)
      dBreakpointCorrection: true  (default: true)
      dBreakpointsFullPath: false  (default: false)
      dCDB_Console: false  (default: false)
      dCloseBuffersOnExit: false  (default: false)
      dCloseMemoryBuffersOnExit: true  (default: true)
      dDisplayStringLimit: 100  (default: 100)
      dEnableReverseDebugging: false  (default: false)
      dExtraDumperFile:   (default: )
      dFontSizeFollowsEditor: false  (default: false)
      dGdbCustomDumperCommands:   (default: )
      dGdbPostAttachCommands:   (default: )
      dGdbStartupCommands:   (default: )
      dIdentifyDebugInfoPackages: false  (default: false)
      dIgnoreFirstChanceAccessViolation: false  (default: false)
      dIntelFlavor: false  (default: false)
      dLoadGdbDumpers2: false  (default: false)
      dLoadGdbInit: true  (default: true)
      dLogTimeStamps: false  (default: false)
      dMaximalStackDepth: 20  (default: 20)
      dMaximalStringLength: 10000  (default: 10000)
      dMultiInferior: false  (default: false)
      dNoPluginBreakpoints: false  (default: false)
      dQmlInspector.ShowAppOnTop: false  (default: false)
      dRaiseOnInterrupt: true  (default: true)
      dRegisterForPostMortem: false  (default: false)
      dSelectedPluginBreakpoints: false  (default: false)
      dSelectedPluginBreakpointsPattern: .*  (default: .*)
      dShowQObjectNames2: true  (default: true)
      dShowQmlObjectTree: true  (default: true)
      dShowQtNamespace: true  (default: true)
      dShowStandardNamespace: true  (default: true)
      dShowThreadNames: false  (default: false)
      dSkipKnownFrames: false  (default: false)
      dSortStructMembers: true  (default: true)
      dSourcePaths:   (default: )
      dStationaryEditorWhileStepping: false  (default: false)
      dSwitchModeOnExit: false  (default: false)
      dSymbolPaths:   (default: )
      dTargetAsync: false  (default: false)
      dUseAddressInBreakpointsView: false  (default: false)
      dUseAddressInStackView: false  (default: false)
      dUseAlternatingRowColours: false  (default: false)
      dUseCodeModel: true  (default: true)
      dUseDebuggingHelper: true  (default: true)
      dUseDynamicType: true  (default: true)
      dUseMessageBoxForSignals: true  (default: true)
      dUsePythonDumper: true  (default: true)
      dUseToolTips: true  (default: true)
      dUseToolTipsInBreakpointsView: true  (default: false)  ***
      dUseToolTipsInLocalsView: false  (default: false)
      dUseToolTipsInStackView: true  (default: true)
      dWarnOnReleaseBuilds: true  (default: true)
      dWatchdogTimeout: 20  (default: 20)
      dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
      dCALL: SETUP ENGINE
      dTRYING TO START ADAPTER
      dENABLING TEST CASE: 0
      dSTARTING D:/libs/qt/qt-lib/Tools/mingw530_32/bin/gdb.exe -i mi
      dGDB STARTED, INITIALIZING IT
      <1show version
      <2show debug-file-directory
      <3set print object on
      <4set breakpoint pending on
      <5set print elements 10000
      <6set unwindonsignal on
      <7set width 0
      <8set height 0
      sSetting up inferior...
      <9set substitute-path C:/work/build/qt5_workdir/w/s D:/libs/qt/qt-lib/5.10.1/mingw53_32
      <10set substitute-path Q:/qt5_workdir/w/s D:/libs/qt/qt-lib/5.10.1/mingw53_32
      <11set substitute-path c:/Users/qt/work/install D:/libs/qt/qt-lib/5.10.1/mingw53_32
      <12set substitute-path c:/users/qt/work/qt D:/libs/qt/qt-lib/5.10.1/mingw53_32
      <13python sys.path.insert(1, 'D:/libs/qt/qt-lib/Tools/QtCreator/share/qtcreator/debugger/')
      <14python sys.path.append('D:/libs/qt/qt-lib/Tools/mingw530_32/bin/data-directory/python')
      <15python from gdbbridge import *
      <16python theDumper.loadDumpers({"token":16})
      dUNEXPECTED GDB STDERR: Traceback (most recent call last):
      d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/__init__.py", line 144, in auto_load_packages
      d    __import__(modname)
      d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/command/frame_filters.py", line 21, in <module>
      d    import copy
      d  File "C:\Python27\Lib/copy.py", line 52, in <module>
      d    import weakref
      d  File "C:\Python27\Lib/weakref.py", line 14, in <module>
      d    from _weakref import (
      dImportError: cannot import name _remove_dead_weakref
      d
      dTraceback (most recent call last):
      d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/__init__.py", line 144, in auto_load_packages
      d    __import__(modname)
      d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/command/pretty_printers.py", line 19, in <module>
      d    import copy
      d  File "C:\Python27\Lib/copy.py", line 52, in <module>
      d    import weakref
      d  File "C:\Python27\Lib/weakref.py", line 14, in <module>
      d    from _weakref import (
      dImportError: cannot import name _remove_dead_weakref
      d
      dUNEXPECTED GDB STDERR: Traceback (most recent call last):
      d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/__init__.py", line 144, in auto_load_packages
      d    __import__(modname)
      d  File "d:\libs\qt\qt-lib\tools\mingw530_32\share\gdb/python/gdb/command/type_printers.py", line 17, in <module>
      d    import copy
      d  File "C:\Python27\Lib/copy.py", line 52, in <module>
      d    import weakref
      d  File "C:\Python27\Lib/weakref.py", line 14, in <module>
      d    from _weakref import (
      dImportError: cannot import name _remove_dead_weakref
      d
      >=thread-group-added,id="i1"
      >~"GNU gdb (GDB) 7.10.1\n"
      >~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
      >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
      >~"This GDB was configured as \"i686-w64-mingw32\".\nType \"show configuration\" for configuration details."
      >~"\nFor bug reporting instructions, please see:\n"
      >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
      >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
      >~"For help, type \"help\".\n"
      >~"Type \"apropos word\" to search for commands related to \"word\".\n"
      
      >&"show version\n"
      >~"GNU gdb (GDB) 7.10.1\n"
      >~"Copyright (C) 2015 Free Software Foundation, Inc.\n"
      >~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
      >~"This GDB was configured as \"i686-w64-mingw32\".\nType \"show configuration\" for configuration details."
      >~"\nFor bug reporting instructions, please see:\n"
      >~"<http://www.gnu.org/software/gdb/bugs/>.\n"
      >~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
      >~"For help, type \"help\".\n"
      >~"Type \"apropos word\" to search for commands related to \"word\".\n"
      >1^done
      dPARSING VERSION: 1^done
      dSUPPORTED GDB VERSION GNU gdb (GDB) 7.10.1
      dCopyright (C) 2015 Free Software Foundation, Inc.
      dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      dThis is free software: you are free to change and redistribute it.
      dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
      dand "show warranty" for details.
      dThis GDB was configured as "i686-w64-mingw32".
      dType "show configuration" for configuration details.
      dFor bug reporting instructions, please see:
      d<http://www.gnu.org/software/gdb/bugs/>.
      dFind the GDB manual and other documentation resources online at:
      d<http://www.gnu.org/software/gdb/documentation/>.
      dFor help, type "help".
      dType "apropos word" to search for commands related to "word".
      dGNU gdb (GDB) 7.10.1
      dCopyright (C) 2015 Free Software Foundation, Inc.
      dLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
      dThis is free software: you are free to change and redistribute it.
      dThere is NO WARRANTY, to the extent permitted by law.  Type "show copying"
      dand "show warranty" for details.
      dThis GDB was configured as "i686-w64-mingw32".
      dType "show configuration" for configuration details.
      dFor bug reporting instructions, please see:
      d<http://www.gnu.org/software/gdb/bugs/>.
      dFind the GDB manual and other documentation resources online at:
      d<http://www.gnu.org/software/gdb/documentation/>.
      dFor help, type "help".
      dType "apropos word" to search for commands related to "word".
      dUSING GDB VERSION: 71001, BUILD: 2015
      <17-interpreter-exec console "set target-async off"
      
      >&"show debug-file-directory\n"
      >~"The directory where separate debug symbols are searched for is \"d:\\c\\mingw530\\i686-530-posix-dwarf-rt_v4-rev0\\mingw32\\lib\\debug\".\n"
      >2^done
      
      >&"set print object on\n"
      >=cmd-param-changed,param="print object",value="on"
      >3^done
      
      >&"set breakpoint pending on\n"
      >=cmd-param-changed,param="breakpoint pending",value="on"
      >4^done
      
      >&"set print elements 10000\n"
      >=cmd-param-changed,param="print elements",value="10000"
      >5^done
      
      >&"set unwindonsignal on\n"
      >=cmd-param-changed,param="unwindonsignal",value="on"
      >6^done
      
      >&"set width 0\n"
      >=cmd-param-changed,param="width",value="4294967295"
      >7^done
      
      >&"set height 0\n"
      >8^done
      
      >&"set substitute-path C:/work/build/qt5_workdir/w/s D:/libs/qt/qt-lib/5.10.1/mingw53_32\n"
      >9^done
      
      >&"set substitute-path Q:/qt5_workdir/w/s D:/libs/qt/qt-lib/5.10.1/mingw53_32\n"
      >10^done
      
      >&"set substitute-path c:/Users/qt/work/install D:/libs/qt/qt-lib/5.10.1/mingw53_32\n"
      >11^done
      
      >&"set substitute-path c:/users/qt/work/qt D:/libs/qt/qt-lib/5.10.1/mingw53_32\n"
      >12^done
      
      >&"python sys.path.insert(1, 'D:/libs/qt/qt-lib/Tools/QtCreator/share/qtcreator/debugger/')\n"
      >13^done
      
      >&"python sys.path.append('D:/libs/qt/qt-lib/Tools/mingw530_32/bin/data-directory/python')\n"
      >14^done
      
      >&"python from gdbbridge import *\n"
      >&"Traceback (most recent call last):\n"
      >&"  File \"<string>\", line 1, in <module>\n"
      >&"  File \"D:/libs/qt/qt-lib/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py\", line 40, in <module>\n"
      >&"    from dumper import *\n"
      >&"  File \"D:/libs/qt/qt-lib/Tools/QtCreator/share/qtcreator/debugger/dumper.py\", line 28, in <module>\n"
      >&"    import copy\n"
      >&"  File \"C:\\Python27\\Lib/copy.py\", line 52, in <module>\n"
      >&"    import weakref\n"
      >&"  File \"C:\\Python27\\Lib/weakref.py\", line 14, in <module>\n"
      >&"    from _weakref import (\n"
      >&"ImportError: cannot import name _remove_dead_weakref\n"
      >&"Error while executing Python code.\n"
      >15^error,msg="Error while executing Python code."
      
      >&"python theDumper.loadDumpers({\"token\":16})\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"
      >16^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(17) [master]
      
      dQUIT DEBUGGER REQUESTED IN STATE 17
      >17^done
      dCOOKIE FOR TOKEN 17 ALREADY EATEN (DebuggerFinished). TWO RESPONSES FOR ONE COMMAND?
      

      My environment:

      • Windows10 x64,

      • Qt Creator 4.6.0

      • Qt 5.10.1

      • MinGW 5.3.0 32bit for C++

      What am I doing wrong, where is my mistake and how to solve that issue.
      Thanks a lot.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 12 Apr 2018, 04:34 last edited by
      #2

      @OlegK Try to install Python 3

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3
      • O Offline
        O Offline
        OlegK
        wrote on 12 Apr 2018, 12:49 last edited by
        #3

        Python 3.6.5 fixed my issue.
        Thanks.

        1 Reply Last reply
        1
        • xenovasX Offline
          xenovasX Offline
          xenovas
          wrote on 7 Feb 2019, 14:54 last edited by
          #4

          hi ,

          I have exactly the same issue and i don't want to install python 3... is there any other way around ?

          @xen0vas

          1 Reply Last reply
          0
          • xenovasX Offline
            xenovasX Offline
            xenovas
            wrote on 7 Feb 2019, 16:52 last edited by
            #5

            how about changing to MinGW 64 ?

            @xen0vas

            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