好的,我有:

Visual Studio 2010 RC, W7 x64,启动了一个新的项目类型的Silverlight应用程序。在ASP中托管Silverlight应用程序。NET Web应用程序项目。Silverlight 3.0版。 添加了一个LinqToSQL类,一个WCF服务,一个Winform测试应用程序(解决方案中的项目)和一些类(也作为解决方案中的项目)。

昨天,我突然得到了“断点当前不会被击中”。本文档未加载任何符号。'消息出现在IDE中,但它只影响Web Appliaction,我可以调试Silverlight和Winform应用程序。

我尝试/做了什么来摆脱这条信息:

Reset Visual Studio Settings removed all files in every \Temporary ASP.NET Files Folder (there is one for each 32bit/64bit and for Framework 2.0 and 4.0) tried to debug using Visual Studio Integrated Web server - normally I use IIS, in the project output of the solution I deleted every obj and bin folders in every project folder created a new solution and added all the projects to this new solution deleted the solution suo file created a new ASP.NET Web Application to test if it is a VS-installation issue => I can debug this new project/solution rebooted the machine several times repaired the vs.net installation did an IISReset removed the Web App from IIS used the Create Virtual Directory Button under Project Properties of the Web App to create a new Web App in IIS changed the Framework Version of every project from 3.5 to 4.0 Opened the Solution on my second machine => same behavior crawled Microsoft Connect for bugs / similar issues SPENT 7 HOURS.

这是我人生中第二次这样了。上次我通过删除临时ASP解决了这个问题。NET文件文件夹,但这次我需要你的帮助。


当前回答

我尝试重命名obj\debug文件夹中的.pdb文件,并做了一个干净的解决方案和重建。 它创建了一个新的.pdb文件,我能够正确地命中断点。

其他回答

从浏览器中打开Web应用程序url,然后在VS.Net IDE中使用工具>AttachtoProcess

然后附加到aspnet_wp.exe。

调试器将开始工作

If you are having problems with Silverlight projects the solution can be fairly simple. According to my experience in many cases debugging symbols are not being loaded due to the new ".xap" files not being deployed to temporary folder (either internal VS Cassini or IIS Express). In this situation full rebuilds or resetting VS settings won't help. The easiest solution is just to delete temporary internet files within your browser. If you are using IE for Silverlight development and testing I would recommend switching on "Delete browsing history on exit" option in order not to have such issues in the future.

我必须手动从注册表中卸载所有。dll实例,并从本地驱动器中卸载所有。dll实例。卸载/重新安装我的应用程序,现在im击中断点!这样做浪费了半天时间:(。

如果你正在调试一个web项目,确保debug="true"属性已经在你的web中设置。配置文件:

<system.web>
    <compilation debug="true"   .../>

这是我如何修复我的问题,克隆到不同的存储库,Visual Studio 2015:

在Visual Studio中:

点击工具- >选项 在左窗格中,单击调试->符号 点击“空符号缓存”