升级到 Visual Studio 2015,现在不能在调试中打断点 [英] Upgrade to Visual Studio 2015 and now can't hit break points in debugging

查看:55
本文介绍了升级到 Visual Studio 2015,现在不能在调试中打断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个在 Visual Studio 2013 中构建的多项目解决方案,它运行良好,但现在我已经升级到 Visual Studio 2015,我无法再在调试模式下为除主项目之外的任何项目打断点在项目属性"页面中选择为启动项目.我以前可以点击其他项目,然后选择 Debug -> Start New Instance.我收到错误 当前不会命中断点.未为该文档加载任何符号. 我尝试了很多在 Google 上找到的东西,包括:

I have a multi-project solution that I was building in Visual Studio 2013 and it was working fine but now that I have upgraded to Visual Studio 2015 I can no longer hit break points in debug mode for any project exect the main project selected as the Startup project in the Project Properties page. I used to be able to click on the other projects and just choose Debug -> Start New Instance. I am getting the error The breakpoint will not currently be hit. No symbols have been loaded for this document. I have tried a lot of things found on Google including:

  • 清理/重建
  • 从项目中删除 OBJ 和 BIN 文件夹
  • 是否进行了 VS 修复
  • 重新启动
  • 已卸载/重新安装
  • Confirmed Define DEBUG 约束为 Properties -> Build 启用
  • 未选中属性"->构建"的已确认优化代码
  • 已确认的属性 -> 构建 => 平台目标已设置为所有项目的任何 CPU
  • 尝试使用以管理员身份运行"运行 VS
  • 删除/AppData/Local/Temp/Temporary ASP.Net Files/中的所有文件
  • 确保 Debug -> Attack to Process -> Select 已选择自动确定要调试的代码类型"
  • 确保属性 -> Web -> Debuggerts 已选中 ASP.Net(我的属性已选中 ASP.NEt 并启用编辑并继续选中,Natvie Code SQL Server 和 Silverlight 未选中)
  • 在属性中确认目标框架 -> 应用程序设置为与 Web.Config/App.Config 文件中相同的版本 (4.6).

那么我在这里错过了什么?为什么我不能再调试其他项目?

So what am I missing here? Why can I no longer debug the other projects?

推荐答案

我一直不知道发生了什么,但我最终构建了一个全新的项目,只需将文件导入其中,现在一切正常.

I never figured out what happened but I ended up building a whole new project and just importing the files into it and everything works now.

这篇关于升级到 Visual Studio 2015,现在不能在调试中打断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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