缺少pdb文件 [英] missing pdb file

查看:504
本文介绍了缺少pdb文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在wince7设备上调试我的应用程序。

I'm debugging my app on a wince7 device.

几分钟后,我得到一个错误:没有为任何调用堆栈帧加载任何符号。无法显示源代码。

After couple minutes I'm getting an error: "No symbols are loaded for any call stack frame. The source code cannot be displayed."

我在模块列表中注意到我有1个dll缺少pdb文件。它的名称是System.Drawing.dll。
我注意到该模块是在创建了一些线程(我没有创建并且我不知道是谁)之后添加到模块列表中的。

I noticed on the modules list that I have 1 dll that is missing pdb file. Its name is System.Drawing.dll . I noticed that the module added to the module list after some thread (that I'm not creating and I don't know who) is created.

我只有在线程运行后才收到错误消息。

I'm getting the error only after the thread is running.

任何人都知道我在哪里可以找到需要pdb文件吗? (我已经尝试过修复.net紧凑框架)。

Anyone know where can I find the needed pdb file? (I have already tried to repair the .net compact framework)

如何确定线程从哪里开始? (我在代码中找不到)

How can I find out where the thread is starting? (I can't find it in the code)

接下来我该怎么做?

请帮助

推荐答案

在Visual Studio内部

Inside of visual studio

工具->选项->调试->符号->选中Microsoft符号服务器作为获取符号的位置。

Tools -> Options -> Debugging -> Symbols -> Check the Microsoft symbol server to be the location to get the symbols from.

也可以在调试的常规选项卡中取消选中启用我的代码,这将允许调试其他程序集。

Also in the General tab in Debugging uncheck the "Enable Just my Code" which will allow to debug into other assemblies.

还启用.NET Framework源代码步进复选框。

Also enable the .NET Framework source stepping checkbox.

但是我建议从符号服务器下载所有符号并将其保存在本地。

But what i would recommend is to download all symbols from the symbol server and save them locally.

然后将本地目录路径添加为Visual Studio中Symbols中的符号路径。

Then add the local directory path as the symbol path in the Symbols in Visual Studio.

要下载符号->

在调试的符号选项卡中,检查Microsoft Symbol Server,然后按确定。 Visual Studio将自动将符号下载到缓存目录

In the symbols tab in Debugging, check the Microsoft Symbol Server and press OK. Visual Studio will automatically download symbols to the Cache Directory

  C:\Users\[UserName]\AppData\Local\Temp\SymbolCache

下载完成后,您可以添加另一个路径并指向此目录并取消选中Microsoft Symbol Server或将本地路径移到Symbol Server路径上方。

After the download is complete you can add another path and point to this directory and uncheck Microsoft Symbol Server or move your local path above the Symbol Server path.

现在,您应该能够加载符号并获取方法名称了。

Now you should be able to load the symbols and get Method names.

您可能还想看看 http://msdn.microsoft.com/zh-cn/library/windows/hardware/ff558829(v = vs.85).aspx

希望这会有所帮助。

这篇关于缺少pdb文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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