問題描述
此處的問題與我的相同,但那里的解決方案對我不起作用.我在 Windows 7 上使用 QtCreator 2.4.1.當我嘗試調試一個簡單的 hello world 應用程序時,顯示的消息是:用于調試x86-windows-msvc2010-pe-32bit"類型二進制文件的首選調試器引擎不是可用....詳細信息:沒有可用于格式為x86-windows-msvc2010-pe-32bit"的二進制文件的 CDB 二進制文件
The question here is the same as mine but the solution there is not working for me. I am using QtCreator 2.4.1 on Windows 7. When I try to debug a simple hello world app the message displayed is: "The preferred debugger engine for debugging binaries of type 'x86-windows-msvc2010-pe-32bit' is not available....Details: There is no CDB binary available for binaries in format 'x86-windows-msvc2010-pe-32bit"
當我發現 cdb.exe 不在我的系統上時,我安裝了帶有調試器工具的 Windows SDK,并且 cdb.exe 的當前位置是C:Program Files (x86)Windows Kits8.0Debuggersx86cdb.exe"和C:Program Files (x86)Windows Kits8.0Debuggersx64cdb.exe",
When I found that cdb.exe was not on my system I had Windows SDK installed with debugger tools and the current location of cdb.exe is "C:Program Files (x86)Windows Kits8.0Debuggersx86cdb.exe" and "C:Program Files (x86)Windows Kits8.0Debuggersx64cdb.exe",
在CDB選項卡中我配置了符號服務器以及CDB.exe的路徑,但沒有成功!
In the CDB tab I configured symbol server as well as the path of CDB.exe, but in vain!
QtCreator->Tools->options->Debugger->CDB Tab->有以下字段:
附加參數
使用國行控制臺
符號路徑
源路徑
正確的斷點位置等...
QtCreator->Tools->options->Debugger->CDB Tab->has the following fields:
Additional arguments
use CDB console
Symbol Paths
Source Paths
Correct breakpoint location etc...
有人可以詳細解釋這些是什么意思以及這里期望的值是什么.有沒有人使用 Qt Creator 成功調試過任何應用程序.
Can somebody kindly explain in detail what these mean and what values are expected here. Has anybody successfully debugged any applicaiton using Qt Creator.
請參考此鏈接:
http://qt-project.org/forums/viewthread/16018/
推薦答案
我也遇到了同樣的問題,終于想出了如何解決這個問題.Styne666給了我一個提示.執行以下操作:
I was having the same problems too, and finally figured out how to solve this. Styne666 gave me a hint. Do the following:
- 工具
- 選項...
- 構建和運行
- 工具鏈
- 使用克隆"按鈕復制每個自動檢測到的 MSVC 項目
- 在每個克隆項目中,您可以在調試器"字段中指定調試器(例如 C:Program FilesWindows Kits8.0Debuggersx64cdb.exe)
- 此后,一切似乎都正常了...
我應該進一步提到,如果您像我一樣運行 64 位版本的 Windows 和 32 位版本的 Qt Creator,您需要確保您指向的是 32 位版本的 cdb (其中有 x86 和 x64 target 版本).所以對于 32 位目標版本,我運行這個:
I should further mention that if you are running a 64-bit version of Windows and a 32-bit version of Qt Creator like I am, you need to make sure that you are pointing to the 32-bit versions of cdb (of which there are x86 and x64 target versions). So for the 32-bit target builds I run this:
C:Program Files (x86)Windows Kits8.0Debuggersx86cdb.exe
對于 x64 構建,我運行這個:
And for x64 builds I run this:
C:Program Files (x86)Windows Kits8.0Debuggersx64cdb.exe
棘手的部分是讓 Microsoft 在您的 64 位機器上安裝 32 位版本的調試工具有些困難.一位同事最近嘗試這樣做,并說他需要安裝 Windows 8 工具才能選擇這樣做 - Windows 7 版本不會讓你這樣做.
The tricky part is that it is somewhat difficult to get Microsoft to install the 32-bit version of the debugging tools on your 64-bit machine. A co-worker tried to do so recently and said that he needed to install the Windows 8 tools in order to have the option to do that - the Windows 7 versions would not let you.
這篇關于如何在 Qt Creator 中配置 CDB?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!