问题
I just started using Qt and I wanted to debug my Qt application. Can I use the standard GDB debugger with Qt executables?
回答1:
Yes you can. You might also want to use the gdb integration in Qt Creator, which does a much better job of inspecting data at run time than gdb alone.
回答2:
There is no reason why you might not do so.
As Qt executables are just normal executables compiled by GCC you could debug them as all others.
The fact that the Qt build process auto-generates intermediate C++ files does not prevent this because those intermediate C++ files are just compiled normally together with your own files into the executable.
回答3:
Yes, you can. First Google hit is this KDEbase tutorial.
来源:https://stackoverflow.com/questions/1368551/can-you-use-the-standard-gdb-debugger-with-qt-executables