Can you use the standard GDB debugger with Qt executables?

心已入冬 提交于 2019-12-18 08:54:27

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!