-
Debugging in Windows
I have had a bug in my program since August detailed here:
http://www.qtcentre.org/forum/f-qt-p...lot-15547.html
I still haven't been able to fix it, and I'm out of ideas. I have been building this project under Linux/gcc and Windows/MingW.
Now I am building in MSVC so I can use the debugger to step through my code, but I can't figure out how to set up the project. I have everything working using nmake, but I have no idea how to get source-level debugging working. Are there any tuturials out there in setting up MSVC projects for debugging QT apps?
-
Re: Debugging in Windows
you could use the console to send messages
for that add to your .pro this line
Code:
win32:CONFIG += console
and use qdebug() inside your code
Code:
qDebug() <<"message";
then follow the display in your console while running
Alternatively you could use the debug mode, I tested it under QT-creator it works fine for me (vista + Qt4.4.3 +ming) but I don't know with MS studio.
I hope this help
-
Re: Debugging in Windows
I had trouble getting it to work in Visual Studio .NET, but I was able to get everything working in the debugger with Visual Studio 6.0
Basically you have to run qmake as follows:
qmake -t vcapp -o myproject.dsp myproject.pro
This produces a .dsp file that you can pull into developer studio, and this will allow you to perform source-level debugging, breakpoints etc.
-
Re: Debugging in Windows
May be this thread will help you ...