Debugging win x64 application in QtCreator
I have Qt 4.6.2 built for x64 using the vs2008 x64 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 (x64)" and set the Cdb path to "C:\Program Files\Debugging Tools for Windows (x64)" 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:
Quote:
Unable to load the debugger engine library 'C:\Program Files\Debugging Tools for Windows (x64)\dbghelp.dll': Cannot load library C:\Program Files\Debugging Tools for Windows (x64)\dbghelp.dll:
I double checked and dbghelp.dll does exist at that location. Does anybody have any ideas?
Re: Debugging win x64 application in QtCreator
Hello, I am getting this same problem in 32bit windows. Any Solution recommended?
Re: Debugging win x64 application in QtCreator
I know this is not a solution but I just switched to VS2008 and everything works fine. I would much rather be using Qt Creator though, so if anybody has any ideas it would be appreciated.
Re: Debugging win x64 application in QtCreator
I'm suffering from this issue as well :(
version info
Qt Creator 2.0.0
from revision 1cf52a091
built on Jun 18, 2010
based on Qt 4.7.0 (32 bit)
Re: Debugging win x64 application in QtCreator
From what I have been reading you need to build Qt creator for x64 from source to be able to debug x64 applications: Link. However I keep getting compilation errors.
Quote:
link /LIBPATH:"c:\Qt\qt-src-4.6.2\lib" /NOLOGO /DEBUG /MANIFEST /MANIFES
TFILE:"debug\qtcdebugger.intermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEP
ENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0'
publicKeyToken='6595b64144ccf1df' language='*' processorArchitecture='*'" /OUT:.
.\..\..\bin\qtcdebugger.exe @C:\Users\agerlach\AppData\Local\Temp\nm7C91.tmp
qtmaind.lib(qtmain_win.obj) : fatal error LNK1103: debugging information corrupt
; recompile module
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
\BIN\amd64\link.EXE"' : return code '0x44f'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 8\VC
\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.
c:\Qt\qtcreator-1.3.1(x64)>
does anybody have any advice?
Re: Debugging win x64 application in QtCreator
OK, I was able to compile Qt Creator 2.0 and verify that it is able to debug x64 applications. I used the following steps: First build Qt 4.7 from source for x64, then build Qt Creator 2.0 from source for x64 (see this forum post: Link). I built a sample application and was able to debug! Unfortunetly the application that I need to debug will not debug. When I start the debugger Qt Creator become unresponsive for some time and then finally comes back without ever running my application. Even when it worked with my sample application it was extremely slow in displaying the application, on the order of minutes and Qt Creator was unresponsive during that time.