尚未加载任何符号,缺少pdb文件 [英] No symbols have been loaded and pdb file missing

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

问题描述

在尝试调试网站应用程序时,我试图理解为什么收到当前不会命中断点.没有为该文档加载任何符号"消息的原因(注意:如果没有Web应用程序,以防万一)很重要)

I'm trying to understand why I get the "The breakpoint will not currently be hit. No symbols have been loaded for this document" message, when try to debug my web site application (note: no web application, in case it matters)

到目前为止,我发现pdb(项目调试数据库)文件与源代码一样重要,它应该出现在bin文件夹中,但是由于文件丢失的原因,仅在其中放置了一些dll,实际上,整个目录中没有pdb文件.

So far I found out that the pdb (project debug database) file is as important as the source code, and it should appear in the bin folder, but for whatever reason the file is missing, just some dll's are placed there, actually there is no pdb file in the entire directory.

我的第一个问题是:无论正在开发哪种项目,都应该有一个pdb文件.正确吗?

My first question is: There should be a pdb file regardless whatever the kind of project that is being developing. Correct?

第二个问题:如何重新创建该文件,或者需要执行哪些步骤才能再次调试项目?

Second question: How can I re-create that file again, or what steps needs to be done in order to debug the project again?

推荐答案

我为解决此问题而做的事情:

Couple of things I do to try to correct this problem:

  • 清除临时ASP.NET文件(C:\ Windows \ Microsoft .NET \ Framework {version} \ Temporary ASP.NET文件{site}(您需要退出Visual Studio和所有指向开发站点的Web浏览器))
  • 启动任务管理器,右键单击W3WP.EXE进程,选择SET AFFINITY并取消选中除一个CPU之外的所有CPU

通常,如果执行此操作,然后将其附加到W3WP进程进行调试,则将填充断点,并且可以逐步执行代码.

Usually if I do this, then attach to the W3WP process to debug, the breakpoint will be filled in and I can step through my code.

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

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