Visual Studio没有为此文档加载符号 [英] Visual Studio No Symbols have been loaded for this document

查看:129
本文介绍了Visual Studio没有为此文档加载符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在调试Visual Studio 2008 C ++项目时遇到了一些麻烦。当我在调试中开始运行它时,会使用消息

I am having some trouble debugging a visual studio 2008 C++ project. When I start running it in debug, the breakpoints are disabled with the message


断点不会被命中。没有为此
文档加载符号。

The Breakpoint will not be hit. No Symbols have been loaded for this document.

我已尝试清理和重建,但这不会区别。

I have tried cleaning and rebuilding, but this doesn't make a difference.

我也试过在Debug-> Windows-> Modules中查找。如果我右键单击我试图调试的模块,并按符号加载信息,它会打开一个列表,它试图加载符号的地方。列表中的第一个是正确的,文件存在,但是旁边是这个错误

I also tried looking in Debug->Windows->Modules. If I right click on the module I am trying to debug and press Symbol load information it brings up a list of places it has tried to load the symbols from. The first in the list is correct and the file exists, but next to it is this error


C:\path\to\\ \\my \symbol\Debug\MyProject.pdb:
错误的未知符号处理程序

C:\path\to\my\symbol\Debug\MyProject.pdb: Unknown symbol handler for error

推荐答案

首先,你的一些模块可能不会显示模块窗口,因为它们中的一些可以动态加载(仅在需要时)。

First of all, it is possible that some of your modules won't show in the module window, because some of them may be loaded dynamically (only as needed).

您可能希望在链接器>调试>生成程序数据库文件和生成调试信息下检入您的项目属性。

You might want to check in your project properties under Linker > Debugging > Generate Program Database File and Generate Debug Info. Be sure these two are set properly.

另外,检查C / C ++>常规>调试信息格式是否设置为编辑和继续的程序数据库(/ ZI)相似的东西。

Also, check if C/C++ > General > Debug Information Format is set to Program Database for Edit And Continue (/ZI) or something similar.

我知道你提到你的符号文件存在,但是我刚才提到的检查将确保你的符号在正确的地方有正确的版本。

I know you mentioned that your symbol file exists, but checking was I just mentioned will make sure you have the right version of your symbol in the right place.

最后,检查您的解决方案中的所有项目和文件是否设置为Debug而不是Release或其他,因为不会生成任何符号(因此不会加载任何符号)对于此项目/文件。

Finally, check if all your project and files in your solution are set to compile as Debug and not Release or something else, because no symbols will be generated (hence none will be loaded) for this project / file.

希望这有助于。

这篇关于Visual Studio没有为此文档加载符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆