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. Debugging has failed
Forum Updated to NodeBB v4.3 + New Features

Debugging has failed

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
4 Posts 2 Posters 392 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.
  • houyaweiH Offline
    houyaweiH Offline
    houyawei
    wrote on last edited by
    #1

    I can compile debug, release, and run. But debugging cannot be enabled in debug.```
    15:06:46: Debugging E:\Qtproject\ND-Camera\build\Desktop_Qt_5_15_2_MinGW_32_bit-Debug\debug\ND-Camera.exe ...
    15:06:48: Debugging of E:\Qtproject\ND-Camera\build\Desktop_Qt_5_15_2_MinGW_32_bit-Debug\debug\ND-Camera.exe has finished.

    
    QT 5.15.2
    win10
    

    1show version
    2show debug-file-directory
    3set max-completions 1000
    4complete set arch
    5set breakpoint pending on
    6set print elements 10000
    7set index-cache on
    8set unwindonsignal on
    9set width 0
    10set height 0
    正在设置 inferior...
    11set substitute-path /Users/qt/work/qt D:/Qt/5.15.2/Src
    12set substitute-path C:/work/build/qt5_workdir/w/s D:/Qt/5.15.2/Src
    13set substitute-path Q:/qt5_workdir/w/s D:/Qt/5.15.2/Src
    14set substitute-path c:/Users/qt/work/install D:/Qt/5.15.2/Src
    15set substitute-path c:/users/qt/work/qt D:/Qt/5.15.2/Src

    directory does not exist: /usr/src/debug/qt5base/src/corelib

    directory does not exist: /usr/src/debug/qt5base/src/gui

    directory does not exist: /usr/src/debug/qt5base/src/network

    16python sys.path.insert(1, 'D:/Qt/Tools/QtCreator/share/qtcreator/debugger')
    17python from gdbbridge import *
    18python theDumper.loadDumpers({"token":18})
    19-interpreter-exec console "set target-async off"
    Debugging has failed.

    
    

    wNote: 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's Debugger plugin, for instance in swap files, or other plugins you might use.
    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
    d[GDB] Start parameters: 'ND-Camera' mode: 1
    dABI: x86-windows-msys-pe-32bit
    dLanguages: c++
    dExecutable: E:\Qtproject\ND-Camera\build\Desktop_Qt_5_15_2_MinGW_32_bit-Debug\debug\ND-Camera.exe
    dDirectory: E:\Qtproject\ND-Camera\build\Desktop_Qt_5_15_2_MinGW_32_bit-Debug
    dDebugger: D:\Qt\Tools\mingw810_32\bin\gdb.exe
    dProject: E:\Qtproject\ND-Camera
    dAdditional Search Directories:
    dSysroot:
    dDebug Source Location: /usr/src/debug/qt5base/src/corelib:/usr/src/debug/qt5base/src/gui:/usr/src/debug/qt5base/src/network
    d[GDB] Debugger settings:
    d/AdditionalArguments: (default: )
    d/AlwaysAdjustColumnWidths: true (default: true)
    d/AutoDerefPointers: true (default: true)
    d/BreakEvent: (default: )
    d/BreakOnCrtDbgReport: false (default: false)
    d/BreakpointCorrection: true (default: true)
    d/CDB_Console: false (default: false)
    d/FirstChanceExceptionTaskEntry: true (default: true)
    d/IgnoreFirstChanceAccessViolation: false (default: false)
    d/LogTimeStamps: false (default: false)
    d/SecondChanceExceptionTaskEntry: true (default: true)
    d/SortStructMembers: true (default: true)
    d/SourcePaths: (default: )
    d/SymbolPaths: (default: )
    d/UsePythonDumper: true (default: true)
    d/UseToolTipsInBreakpointsView: false (default: false)
    d/UseToolTipsInLocalsView: false (default: false)
    d/UseToolTipsInStackView: true (default: true)
    d[GDB] State changed from DebuggerNotReady(0) to EngineSetupRequested(1)
    d[GDB] CALL: SETUP ENGINE
    d[GDB] TRYING TO START ADAPTER
    d[GDB] ENABLING TEST CASE: 0
    d[GDB] STARTING D:\Qt\Tools\mingw810_32\bin\gdb.exe "--tty=\.\pipe\creator-18204-32361" -i mi
    d[GDB] GDB STARTED, INITIALIZING IT
    <1show version
    <2show debug-file-directory
    <3set max-completions 1000
    <4complete set arch
    <5set breakpoint pending on
    <6set print elements 10000
    <7set index-cache on
    <8set unwindonsignal on
    <9set width 0
    <10set height 0
    正在设置 inferior...
    <11set substitute-path /Users/qt/work/qt D:/Qt/5.15.2/Src
    <12set substitute-path C:/work/build/qt5_workdir/w/s D:/Qt/5.15.2/Src
    <13set substitute-path Q:/qt5_workdir/w/s D:/Qt/5.15.2/Src
    <14set substitute-path c:/Users/qt/work/install D:/Qt/5.15.2/Src
    <15set substitute-path c:/users/qt/work/qt D:/Qt/5.15.2/Src
    <# directory does not exist: /usr/src/debug/qt5base/src/corelib
    <# directory does not exist: /usr/src/debug/qt5base/src/gui
    <# directory does not exist: /usr/src/debug/qt5base/src/network
    <16python sys.path.insert(1, 'D:/Qt/Tools/QtCreator/share/qtcreator/debugger')
    <17python from gdbbridge import *
    <18python theDumper.loadDumpers({"token":18})

    =thread-group-added,id="i1"
    ~"GNU gdb (GDB) 8.1\n"
    ~"Copyright (C) 2018 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:\nhttp://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) 8.1\n"
    ~"Copyright (C) 2018 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:\nhttp://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
    d[GDB] PARSING VERSION: 1^done
    d[GDB] SUPPORTED GDB VERSION GNU gdb (GDB) 8.1
    dCopyright (C) 2018 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:
    dhttp://www.gnu.org/software/gdb/bugs/.
    dFind the GDB manual and other documentation resources online at:
    dhttp://www.gnu.org/software/gdb/documentation/.
    dFor help, type "help".
    dType "apropos word" to search for commands related to "word".
    dGNU gdb (GDB) 8.1
    dCopyright (C) 2018 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:
    dhttp://www.gnu.org/software/gdb/bugs/.
    dFind the GDB manual and other documentation resources online at:
    dhttp://www.gnu.org/software/gdb/documentation/.
    dFor help, type "help".
    dType "apropos word" to search for commands related to "word".
    d[GDB] USING GDB VERSION: 80100, BUILD: 2018
    <19-interpreter-exec console "set target-async off"

    &"show debug-file-directory\n"
    ~"The directory where separate debug symbols are searched for is "c:\c\mingw810\i686-810-posix-dwarf-rt_v6-rev0\mingw32\lib\debug".\n"
    2^done

    &"set max-completions 1000\n"
    =cmd-param-changed,param="max-completions",value="1000"
    3^done

    &"complete set arch \n"
    ~"set arch auto\n"
    ~"set arch i386\n"
    ~"set arch i386:intel\n"
    ~"set arch i386:nacl\n"
    ~"set arch i386:x64-32\n"
    ~"set arch i386:x64-32:intel\n"
    ~"set arch i386:x64-32:nacl\n"
    ~"set arch i386:x86-64\n"
    ~"set arch i386:x86-64:intel\n"
    ~"set arch i386:x86-64:nacl\n"
    ~"set arch i8086\n"
    4^done

    &"set breakpoint pending on\n"
    =cmd-param-changed,param="breakpoint pending",value="on"
    5^done

    &"set print elements 10000\n"
    =cmd-param-changed,param="print elements",value="10000"
    6^done

    &"set index-cache on\n"
    &"No symbol table is loaded. Use the "file" command.\n"
    7^error,msg="No symbol table is loaded. Use the "file" command."

    &"set unwindonsignal on\n"
    =cmd-param-changed,param="unwindonsignal",value="on"
    8^done

    &"set width 0\n"
    =cmd-param-changed,param="width",value="4294967295"
    9^done

    &"set height 0\n"
    10^done

    &"set substitute-path /Users/qt/work/qt D:/Qt/5.15.2/Src\n"
    11^done

    &"set substitute-path C:/work/build/qt5_workdir/w/s D:/Qt/5.15.2/Src\n"
    12^done

    &"set substitute-path Q:/qt5_workdir/w/s D:/Qt/5.15.2/Src\n"
    13^done

    &"set substitute-path c:/Users/qt/work/install D:/Qt/5.15.2/Src\n"
    14^done

    &"set substitute-path c:/users/qt/work/qt D:/Qt/5.15.2/Src\n"
    15^done

    &"python sys.path.insert(1, 'D:/Qt/Tools/QtCreator/share/qtcreator/debugger')\n"
    16^done

    &"python from gdbbridge import *\n"

    &"ERROR:root:code for hash md5 was not found.\nTraceback (most recent call last):\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 147, in <module>\n globals()[__func_name] = __get_hash(__func_name)\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor\n raise ValueError('unsupported hash type ' + name)\nValueError: unsupported hash type md5\n"
    &"ERROR:root:code for hash sha1 was not found.\nTraceback (most recent call last):\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 147, in <module>\n globals()[__func_name] = __get_hash(__func_name)\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor\n raise ValueError('unsupported hash type ' + name)\nValueError: unsupported hash type sha1\n"
    &"ERROR:root:code for hash sha224 was not found.\nTraceback (most recent call last):\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 147, in <module>\n globals()[__func_name] = __get_hash(__func_name)\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor\n raise ValueError('unsupported hash type ' + name)\nValueError: unsupported hash type sha224\n"
    &"ERROR:root:code for hash sha256 was not found.\nTraceback (most recent call last):\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 147, in <module>\n globals()[__func_name] = __get_hash(__func_name)\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor\n raise ValueError('unsupported hash type ' + name)\nValueError: unsupported hash type sha256\n"
    &"ERROR:root:code for hash sha384 was not found.\nTraceback (most recent call last):\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 147, in <module>\n globals()[__func_name] = __get_hash(__func_name)\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor\n raise ValueError('unsupported hash type ' + name)\nValueError: unsupported hash type sha384\n"
    &"ERROR:root:code for hash sha512 was not found.\nTraceback (most recent call last):\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 147, in <module>\n globals()[__func_name] = __get_hash(__func_name)\n File "D:\Qt\Tools\mingw810_32\opt\lib\python2.7/hashlib.py", line 97, in __get_builtin_constructor\n raise ValueError('unsupported hash type ' + name)\nValueError: unsupported hash type sha512\n"

    &"Traceback (most recent call last):\n"
    &" File "<string>", line 1, in <module>\n"
    &" File "D:/Qt/Tools/QtCreator/share/qtcreator/debugger/gdbbridge.py", line 16, in <module>\n"
    &" from dumper import DumperBase, Children, TopLevelItem\n"
    &" File "D:/Qt/Tools/QtCreator/share/qtcreator/debugger/dumper.py", line 130, in <module>\n"
    &" class DumperBase():\n"
    &" File "D:/Qt/Tools/QtCreator/share/qtcreator/debugger/dumper.py", line 3729, in DumperBase\n"
    &" @functools.lru_cache(maxsize = None)\n"
    &"AttributeError: 'module' object has no attribute 'lru_cache'\n"
    &"Error while executing Python code.\n"
    17^error,msg="Error while executing Python code."

    &"python theDumper.loadDumpers({"token":18})\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"
    18^error,msg="Error while executing Python code."
    d[GDB] NOTE: ENGINE SETUP FAILED
    d[GDB] State changed from EngineSetupRequested(1) to EngineSetupFailed(2)
    <Debugging has failed.
    d[GDB] State changed from EngineSetupFailed(2) to DebuggerFinished(16)

    1 Reply Last reply
    0
    • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
    • Axel SpoerlA Offline
      Axel SpoerlA Offline
      Axel Spoerl
      Moderators
      wrote on last edited by
      #2

      Hi and welcome,
      when posting code or debug output, please use the </> code formatting tags to make the output better readable for others.
      You're attempting to debug a 32bit build.
      That doesn't work with recent versions of Qt Creator. Which Qt Creator version do you use?
      Qt 5.15.2 is outdated as well.
      Try Qt6 and compile for 64bit.

      Software Engineer
      The Qt Company, Oslo

      houyaweiH 1 Reply Last reply
      0
      • Axel SpoerlA Axel Spoerl

        Hi and welcome,
        when posting code or debug output, please use the </> code formatting tags to make the output better readable for others.
        You're attempting to debug a 32bit build.
        That doesn't work with recent versions of Qt Creator. Which Qt Creator version do you use?
        Qt 5.15.2 is outdated as well.
        Try Qt6 and compile for 64bit.

        houyaweiH Offline
        houyaweiH Offline
        houyawei
        wrote on last edited by
        #3

        @Axel-Spoerl

        @Axel-Spoerl said in Debugging has failed:

        Hi and welcome,
        when posting code or debug output, please use the </> code formatting tags to make the output better readable for others.
        You're attempting to debug a 32bit build.
        That doesn't work with recent versions of Qt Creator. Which Qt Creator version do you use?
        Qt 5.15.2 is outdated as well.
        Try Qt6 and compile for 64bit.

        Qt Creator 14.0.0

        1 Reply Last reply
        0
        • houyaweiH Offline
          houyaweiH Offline
          houyawei
          wrote on last edited by
          #4

          https://forum.qt.io/topic/157918/qt-creator-14-is-unable-to-debug-a-qt-5-project/11

          1 Reply Last reply
          0
          • houyaweiH houyawei has marked this topic as solved on

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved