QtCreator 4.1 debugging issues on Windows



  • Hi,

    My issue is the following:

    • I can start a debug session if I dont' have any breakpoint set in my project. I really have to delete them. Disabling them does not help. I can see in the process explorer that CDB has started, but the lower-right progress bar in Qt Creator shows "Launching debugger" forever, and nothing happens.
    • I can start a debug session and then create breakpoints.
    • I cannot attach to a running process, with or without breakpoints before attaching.

    I have recently upgraded to QtCreator 4.1. I was previously using version 3.5.1 and everything worked fine.
    I have also recently upgraded from Windows 7 to Windows 10 although I am not sure this might be related. I have installed the Windows 10 SDK.
    I cleaned all previous QtCreator settings before installing QtCreator 4.1, to start with clean settings.

    My project is using MSVC 12.0 (2013), CMake and Ninja.

    Here are my settings:

    • Options > Build & Run
      • Kits
        • Compiler: Microsoft Visual C++ Compiler 12.0 (amd64)
        • Debugger: Auto-detected CDB at C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe
        • CMake Tool: System CMake at C:\Program Files (x86)\CMake\bin\cmake.exe
        • CMake Generator: CodeBlocks - Ninja
        • CMake Configuration: CMAKE_CXX_COMPILER:STRING=%{Compiler:Executable}; CMAKE_MAKE_PROGRAM:STRING=C:\ninja\ninja.exe
      • Compilers
        • Auto-detected
          • Microsoft Visual C++ Compiler 12.0 (x86)
          • Microsoft Visual C++ Compiler 12.0 (amd64_x86)
          • Microsoft Visual C++ Compiler 12.0 (amd64)
          • Microsoft Visual C++ Compiler 12.0 (x86_amd64)
          • Microsoft Visual C++ Compiler 12.0 (x86_arm)
          • Microsoft Visual C++ Compiler 12.0 (amd64_arm)
      • Debuggers
        • Auto-detected
          • Auto-detected CDB at C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe
          • Auto-detected CDB at C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe
      • CMake
        • Auto-detected
          • System CMake at C:\Program Files (x86)\CMake\bin\cmake.exe (Default)

    Here is my debugger log when I start a debug session with F5 and 1 breakpoint:
    I have intentionnally replaced private paths by "XXX" in the log.

    sStarting debugger "CdbEngine" for ABI "x86-windows-msvc2013-pe-64bit"...
    dStart parameters: 'XXX' mode: 1
    dABI: x86-windows-msvc2013-pe-64bit
    dLanguages: c++ 
    dExecutable: XXX -debug -recent
    dDirectory: XXX
    dDebugger: C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe
    dProject: XXX Addtional Search Directories:
    dRemote: :0
    dSysroot: 
    dDebug Source Location: 
    dDebugger settings: 
    dGdbStartupCommands:   (default: )
    dAttemptQuickStart: false  (default: false)
    dLoadGdbDumpers2: false  (default: false)
    dLoadGdbInit: true  (default: true)
    dIgnoreFirstChanceAccessViolation: false  (default: false)
    dBreakpointCorrection: true  (default: true)
    dCDB_Console: false  (default: false)
    dIdentifyDebugInfoPackages: false  (default: false)
    dIntelFlavor: false  (default: false)
    dMultiInferior: false  (default: false)
    dWarnOnReleaseBuilds: false  (default: true)  ***
    dTargetAsync: false  (default: false)
    dUseDynamicType: true  (default: true)
    dAutoEnrichParameters: true  (default: true)
    dWatchdogTimeout: 20  (default: 20)
    dShowQmlObjectTree: true  (default: true)
    dBreakOnAbort: false  (default: false)
    dBreakOnFatal: false  (default: false)
    dBreakOnWarning: false  (default: false)
    dBreakOnCatch: false  (default: false)
    dBreakOnThrow: false  (default: false)
    dSelectedPluginBreakpointsPattern: .*  (default: .*)
    dNoPluginBreakpoints: false  (default: false)
    dQmlInspector.ShowAppOnTop: false  (default: false)
    dRegisterForPostMortem: false  (default: false)
    dUseAddressInStackView: false  (default: false)
    dUseAddressInBreakpointsView: false  (default: false)
    dUseToolTipsInBreakpointsView: false  (default: true)  ***
    dUseToolTipsInBreakpointsView: false  (default: false)
    dUseToolTipsInLocalsView: false  (default: false)
    dUseToolTips: true  (default: true)
    dShowThreadNames: false  (default: false)
    dBreakOnCrtDbgReport: false  (default: false)
    dBreakEvent:   (default: )
    dSourcePaths: srv*  (default: )  ***
    dSymbolPaths: C:\temp\symbolcache  (default: )  ***
    dAdditionalArguments:   (default: )
    dGdbCustomDumperCommands:   (default: )
    dExtraDumperFile:   (default: )
    dAlwaysAdjustColumnWidths: true  (default: true)
    dLogTimeStamps: false  (default: false)
    dAutoQuit: false  (default: false)
    dUseMessageBoxForSignals: true  (default: true)
    dFontSizeFollowsEditor: false  (default: false)
    dUseAlternatingRowColours: true  (default: false)  ***
    dUseCodeModel: true  (default: true)
    dUseDebuggingHelper: true  (default: true)
    dStationaryEditorWhileStepping: false  (default: false)
    dRaiseOnInterrupt: true  (default: true)
    dBreakpointsFullPath: false  (default: false)
    dSwitchModeOnExit: false  (default: false)
    dCloseMemoryBuffersOnExit: true  (default: true)
    dCloseBuffersOnExit: false  (default: false)
    dAutoDerefPointers: true  (default: true)
    dSortStructMembers: true  (default: true)
    dShowQObjectNames: false  (default: false)
    dShowQtNamespace: true  (default: true)
    dShowStandardNamespace: true  (default: true)
    dMaximalStackDepth: 20  (default: 20)
    dAdjustBreakpointLocations: true  (default: true)
    dSelectedPluginBreakpoints: false  (default: false)
    dAllPluginBreakpoints: true  (default: true)
    dEnableReverseDebugging: false  (default: false)
    dSkipKnownFrames: false  (default: false)
    dDisplayStringLimit: 100  (default: 100)
    dMaximalStringLength: 10000  (default: 10000)
    dGdbPostAttachCommands:   (default: )
    dState changed from DebuggerNotReady(0) to EngineSetupRequested(1) [master]
    dQUEUE: SETUP ENGINE
    dCALL: SETUP ENGINE
     Launching C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe -aqtcreatorcdbext.dll -lines -G -c .idle_cmd !qtcreatorcdbext.idle -srcpath srv* XXX -debug -recent
     using C:\Qt\qtcreator-4.1.0\lib\qtcreatorcdbext64\qtcreatorcdbext.dll of 24/08/16 14:08.
     C:\Program Files (x86)\Windows Kits\10\Debuggers\x64\cdb.exe running as 9896
     Microsoft (R) Windows Debugger Version 10.0.14321.1024 AMD64
     Using CDB based breakpoint correction.
     Copyright (c) Microsoft Corporation. All rights reserved.
     CommandLine: XXX
     Symbol search path is: srv*
     Executable search path is: 
    sModule loaded: image00007ff6`11b80000
    sModule loaded: ntdll.dll
    sModule loaded: C:\WINDOWS\System32\KERNEL32.DLL
    sModule loaded: C:\WINDOWS\System32\KERNELBASE.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\ADVAPI32.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\GDI32.dll
    sModule loaded: C:\WINDOWS\System32\msvcrt.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\gdi32full.dll
    sModule loaded: C:\WINDOWS\System32\sechost.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\USER32.dll
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\RPCRT4.dll
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\win32u.dll
    sModule loaded: C:\WINDOWS\System32\WS2_32.dll
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\ole32.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\combase.dll
    sModule loaded: C:\WINDOWS\System32\ucrtbase.dll
    sModule loaded: C:\WINDOWS\SYSTEM32\MSVCR120.dll
    sModule loaded: C:\WINDOWS\SYSTEM32\MSVCP120.dll
    sModule loaded: C:\WINDOWS\System32\bcryptPrimitives.dll
    sModule loaded: C:\WINDOWS\SYSTEM32\IPHLPAPI.DLL
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\COMDLG32.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\shcore.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\SHLWAPI.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\SHELL32.dll
    sModule loaded: C:\WINDOWS\System32\cfgmgr32.dll
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\windows.storage.dll
    sModule loaded: C:\WINDOWS\System32\powrprof.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\System32\kernel.appcore.dll
    sModule loaded: C:\WINDOWS\System32\profapi.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\SYSTEM32\OPENGL32.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\SYSTEM32\WSOCK32.dll
    sModule loaded: C:\WINDOWS\WinSxS\amd64_microsoft.windows.common-controls_6595b64144ccf1df_5.82.14393.0_none_4151bdeb4bbdd21f\COMCTL32.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\SYSTEM32\GLU32.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\SYSTEM32\DDRAW.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: C:\WINDOWS\SYSTEM32\DCIMAN32.dll
    sModule loaded: XXX
    sModule loaded: XXX
    sModule loaded: XXX
     (363c.3a74): Break instruction exception - code 80000003 (first chance)
     ntdll!LdrpDoDebuggerBreak+0x30:
     00007ffd`e0d12650 cc              int     3
     cdb: Reading initial command '.idle_cmd !qtcreatorcdbext.idle'
     Execute when idle: !qtcreatorcdbext.idle
     0:000>
    <l+t
    <l+s
    dNOTE: ENGINE SETUP OK
    dState changed from EngineSetupRequested(1) to EngineSetupOk(3) [master]
    dQUEUE: SETUP INFERIOR
    dState changed from EngineSetupOk(3) to InferiorSetupRequested(4) [master]
    dQUEUE: SETUP INFERIOR
    dCALL: SETUP INFERIOR
    <bu100200 `XXX.cc:272`
    <breakpoints-v
    <.sympath "C:\temp\symbolcache"
    <sxn 0x4000001f
    <sxn ibp
    <.asm source_line
    <!qtcreatorcdbext.setparameter maxStringLength=10000 maxStackDepth=20
    <pid
     Source options are 1:
          1/t - Step/trace by source line
     Source options are 5:
          1/t - Step/trace by source line
          4/s - List source code at prompt
    
    

    Am I missing something ?

    Thanks!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.