How to get Qt Creator to work with CDB?

前提是你 提交于 2019-11-28 11:12:37

Since your Qt is compiled with MSVC the best option is indeed CDB (for GDB you would need, for example, a MinGW compiled version).

Debugging should be out of the box. One first point I could think is whether for some reason Qt Creator doesn't see your debugging tools for Windows. Have you made sure that the path (and the version) for it is correctly specified in the CDB options page?

Also, have you considered switching to Qt Creator 2.1 (it has a lot of improvements in the area)? Or even better, a self-compiled version of the 2.2 branch, which includes a total refactoring of the CDB engine.

Install the microsoft SDK for windows 7 (version 7.1 or later) and check the box for debugging tools for windows. Make sure you selected the msvc version of Qt, not mingw. As long as you have the debugging tools for windows installed the next time you go to debug your application it will prompt you to set up symbol server- click yes and then you are all set.

Michael

Just in case this helps anyone, I'm using Qt Creator 2.3.1 based on Qt 4.7.4 under Windows Vista.

I've been having awful problems getting it to debug. It wouldn't build into the project's /debug folder, so when I ran Debug (F5) it failed and said no such app or directory. Turns out changing the Build Settings and creating a new debug build but specifying the /release folder (where it was creating my app) works fine.

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