PDA

View Full Version : The application requires the debugger engine 'Cdb' problems



gormanst
21st June 2010, 14:17
I have Qt 4.6.2 using the vs2008 command line and am able to compile an run applications built in Qt 1.3.83 using win32-msvc2008 for mkspec. However I am unable to debug. I downloaded and installed "Debugging Tools for Windows (x86)" and set the Cdb path to "C:\Program Files\Debugging Tools for Windows (x86)" in the debugger menu in QtCreator. When I try to debug it states that Cdb is not enabled. When I go back to the debugger options menu I see the following error:
Unable to load the debugger engine library 'C:\Program Files\Debugging Tools for Windows (x86)\dbghelp.dll': Cannot load library C:\Program Files\Debugging Tools for Windows (x86)\dbghelp.dll:
I double checked and dbghelp.dll does exist at that location. Does anybody have any ideas?

Thanks in advance

sg

antelope123
16th August 2010, 01:14
I have this exact same problem and would appreciate any insights from anyone.

I am running Windows 7 64bit. Are you running x64 as well?

I am running QT 4.6.3 (compiled using vs2008) and Creator 2.0.0

Carlton
24th August 2010, 13:32
Same here as well, running windows XP SP2. I have the windows debugger installed, and the Cdb envoronment variable defined. the helper has a reen tick against it, but no visualisation of any variables in the debugger window.
I have reinstalled Qt and the Cbd several times, to no effect.
For information, after buiding the helper, the log file contains;
Building debugging helper library in D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper/

Running D:/Carlton/Qt/SDK2010.02/mingw/bin/mingw32-make.exe distclean...
D:/Carlton/Qt/SDK2010.02/mingw/bin/mingw32-make -f Makefile.Debug distclean
mingw32-make[1]: Entering directory `D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper'
del tmp\obj\debug_shared\gdbmacros.o
del debug\libgdbmacros.a
del debug\gdbmacros.dll
del Makefile.Debug
mingw32-make[1]: Leaving directory `D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper'
D:/Carlton/Qt/SDK2010.02/mingw/bin/mingw32-make -f Makefile.Release distclean
mingw32-make[1]: Entering directory `D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper'
del tmp\obj\release_shared\gdbmacros.o
del release\libgdbmacros.a
del release\gdbmacros.dll
del Makefile.Release
mingw32-make[1]: Leaving directory `D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper'
del Makefile

Running d:/carlton/qt/sdk2010.02/qt/bin/qmake.exe ...

Running D:/Carlton/Qt/SDK2010.02/mingw/bin/mingw32-make.exe ...
D:/Carlton/Qt/SDK2010.02/mingw/bin/mingw32-make -f Makefile.Debug all
mingw32-make[1]: Entering directory `D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper'
g++ -c -g -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DUSE_QT_GUI=1 -DHAS_QOBJECT_P_H -DQT_DLL -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\include\QtCore" -I"..\include\QtGui" -I"..\include" -I"..\include\ActiveQt" -I"tmp\moc\debug_shared" -I"..\mkspecs\win32-g++" -o tmp\obj\debug_shared\gdbmacros.o gdbmacros.cpp
gdbmacros.cpp: In member function '<unnamed>::QDumper&<unnamed>::QDumper::put(long long unsigned int)':
gdbmacros.cpp:580: warning: unknown conversion type character 'l' in format
gdbmacros.cpp:580: warning: too many arguments for format
gdbmacros.cpp: In member function '<unnamed>::QDumper&<unnamed>::QDumper::put(long long int)':
gdbmacros.cpp:587: warning: unknown conversion type character 'l' in format
gdbmacros.cpp:587: warning: too many arguments for format
gdbmacros.cpp: At global scope:
gdbmacros.cpp:276: warning: 'bool<unnamed>::couldBePointer(const void*)' defined but not used
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -shared -mthreads -Wl -Wl,--out-implib,debug\libgdbmacros.a -o debug\gdbmacros.dll tmp/obj/debug_shared/gdbmacros.o -L"d:\Carlton\Qt\SDK2010.02\qt\lib" -L"d:\Carlton\Qt\SDK2010.02\qt\lib" -lQtGuid4 -lQtCored4
Creating library file: debug\libgdbmacros.a
mingw32-make[1]: Leaving directory `D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper'
D:/Carlton/Qt/SDK2010.02/mingw/bin/mingw32-make -f Makefile.Release all
mingw32-make[1]: Entering directory `D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper'
g++ -c -O2 -frtti -fexceptions -mthreads -Wall -DUNICODE -DQT_LARGEFILE_SUPPORT -DUSE_QT_GUI=1 -DHAS_QOBJECT_P_H -DQT_DLL -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_THREAD_SUPPORT -I"..\include\QtCore" -I"..\include\QtGui" -I"..\include" -I"..\include\ActiveQt" -I"tmp\moc\release_shared" -I"..\mkspecs\win32-g++" -o tmp\obj\release_shared\gdbmacros.o gdbmacros.cpp
gdbmacros.cpp: In member function '<unnamed>::QDumper&<unnamed>::QDumper::put(long long unsigned int)':
gdbmacros.cpp:580: warning: unknown conversion type character 'l' in format
gdbmacros.cpp:580: warning: too many arguments for format
gdbmacros.cpp: In member function '<unnamed>::QDumper&<unnamed>::QDumper::put(long long int)':
gdbmacros.cpp:587: warning: unknown conversion type character 'l' in format
gdbmacros.cpp:587: warning: too many arguments for format
gdbmacros.cpp: In function 'void<unnamed>::qDumpQAbstractItem(<unnamed>::QDumper&)':
gdbmacros.cpp:1078: warning: dereferencing pointer 'mm' does break strict-aliasing rules
gdbmacros.cpp:1078: warning: dereferencing pointer 'mm' does break strict-aliasing rules
gdbmacros.cpp:1077: warning: dereferencing pointer 'mm' does break strict-aliasing rules
gdbmacros.cpp:1077: warning: dereferencing pointer 'mm' does break strict-aliasing rules
gdbmacros.cpp:1076: note: initialized from here
gdbmacros.cpp: At global scope:
gdbmacros.cpp:276: warning: 'bool<unnamed>::couldBePointer(const void*)' defined but not used
g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-s -shared -mthreads -Wl -Wl,--out-implib,release\libgdbmacros.a -o release\gdbmacros.dll tmp/obj/release_shared/gdbmacros.o -L"d:\Carlton\Qt\SDK2010.02\qt\lib" -L"d:\Carlton\Qt\SDK2010.02\qt\lib" -lQtGui4 -lQtCore4
Creating library file: release\libgdbmacros.a
mingw32-make[1]: Leaving directory `D:/Carlton/Qt/SDK2010.02/qt/qtc-debugging-helper'

leoalvesmachado
24th August 2010, 15:17
I'm also having this problem. I'm using Windows 7 professional 32bits, QT 4.6.2 commercial.
Is this a known issue?

snoqt
26th January 2011, 15:33
Did anyone solve this problem cause I'm still experiencing it.
Thanks.

joginder11singh
19th March 2011, 05:09
hii I have also installed qt 4.6.2 commercial version on WIndows 7 64 bit.
but I dont have no problem of Cdb debugger .
but when i execute my correct program the following error comes----------
===============
Starting C:\Users\jogin11singh\Documents\DijkshtraAlgo\debu g\DijkshtraAlgo.exe...
C:\Users\jogin11singh\Documents\DijkshtraAlgo\debu g\DijkshtraAlgo.exe exited with code 0
=============
Starting: C:/Qt/2010.02.1/mingw/bin/mingw32-make.exe -w
Configuration unchanged, skipping QMake step.

mingw32-make: Entering directory `C:/Users/jogin11singh/Documents/DijkshtraAlgo'
C:/Qt/2010.02.1/mingw/bin/mingw32-make -f Makefile.Debug
mingw32-make[1]: Entering directory `C:/Users/jogin11singh/Documents/DijkshtraAlgo'
mingw32-make[1]: Nothing to be done for `first'.
mingw32-make[1]: Leaving directory `C:/Users/jogin11singh/Documents/DijkshtraAlgo'
mingw32-make: Leaving directory `C:/Users/jogin11singh/Documents/DijkshtraAlgo'
Exited with code 0.
======================


my output is not displayed i know these are not errors according to me
But when i run same program in DEV C++ .it works fine


please solve my problem why it is exiting with code 0