PDA

View Full Version : Need some debugging tips for Qt



montylee
16th March 2009, 17:33
I have used GDB for debugging C programs.
What's the best way to debug a Qt program? I think i need to compile my application using the -g option for debugging.

Should i use gdb or a graphical tool like kdbg, ddd? There are also IDEs like QDevelop and KDevelop, so which one to use.

ComaWhite
16th March 2009, 20:06
Here is some but doesn't apply to GDB http://doc.trolltech.com/4.5/debug.html

montylee
17th March 2009, 00:46
These are the basic things which i already know. I want to know which tool/IDE is the best for debugging.

wysota
17th March 2009, 01:02
Use the one tool that you use for development - KDevelop, Visual Studio, Eclipse, Qt Creator... Alternatively use kgdb or directly gdb itself (which is often the best choice). The frontend doesn't really matter. What matters is your knowledge about debugging and using the backend tool properly.

montylee
17th March 2009, 22:05
ya, i also felt the same after creating this thread.
I am using QDevelop for now as i have used it before too. Along with that i can now use gprof too :)