Debugging QT app in WinDbg -


I have developed a QT application using Qt Creator. The program sometimes crashes on Windows 7 and XP. This happened last time, I used Task Manager to create a dump file. I tried to use WinDbg, but got loads of errors about it, which is not able to find 'symbol' files for Qt:

  *** Error: symbol File not found. Error for exporting symbols for QtWebKit4.dll - *** Error: Icon file was not found. Fix for exporting symbol for QtCore4.dll - *** Error: Icon file not found. Error in exporting symbols for QtGui4.dll - *** Error: Module load complete but symbols can not be loaded for MyApp1.1b.exe *** Alert: Icons: mswsock.dll for symbol timestamp * ** Warning Incorrect 0x522be0b3 0x522bdb3e Timestamp is incorrect 0x4a5be0b0 0x4ce7ba42 for winmm.dll *** Warning: Incorrect 0x4a5be093 0x4a5bdb3c for symbols timestamp uxtheme.dll *** Alert: Symbols timestamp is incorrect 0x53b9ff75 0x53b9f968 for AudioSes.dll < / Code> 

Do anyone know How to use an API WinDbg a QT app in the App or similar tool?

In order not to debug the libraries you sent in an accident dump. To debug the debug symbols (.pdb files) for Qt and therefore to set the following compiler flags, ensuring that you must build the libraries themselves to obtain them:

 < Code> QMAKE_CXXFLAGS_RELEASE + = -Zi QMAKE_LFLAGS_RELEASE + = / debug / opt: REF  

If you are using MSVC and QMake to sum up, you will definitely need to create your own application with the same flag. So make sure that you have set the icon path in your debugger, you need to use .symfix or .sympath or file & gt; for WinDbg Will be; Point it to all directories containing symbol file paths and .dbd files. If you are using Visual Studio, it will also be necessary that original binary is available because it uses a completely different debugger which behaves differently. If you want to get more sophisticated about this then consider the symstore or maybe the breakpad.

See my questions and answer for more information.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -