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

查看:264
本文介绍了升级到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修复

  • 重新启动

  • 已卸载/重新安装

  • 已确认对属性启用了定义DEBUG约束->构建

  • 确认了优化代码为未检查属性->构建

  • 已确认属性->构建=>所有项目的平台目标均设置为任意CPU

  • 尝试使用以管理员身份运行

  • 删除/ AppData / Local / Temp / Temporary ASP.Net文件中的所有文件/

  • 确保进行调试->攻击处理->选择已选择自动确定要调试的代码类型

  • 确保属性-> Web->调试器已检查ASP.Net(我的属性具有ASP。 NEt and Enable编辑并继续检查,Natvie Code SQL Serv er和Silverlight未选中)

  • 在属性->应用程序中已确认目标框架已设置为与Web.Config / App.Config文件相同的版本(4.6)。

  • Clean/Rebuild
  • Delete the OBJ and BIN folder form the projects
  • Did VS repair
  • Rebooted
  • Uninstalled/Reinstalled
  • Confirmed Define DEBUG constraint is enabled for Properties -> Build
  • Confirmed Optimize Code is unchecked for Properties -> Build
  • Confirmed Properties -> Build => Platform target was set to Any CPU for all projects
  • Tried running VS using "Run as Administrator"
  • Deleted all the files in /AppData/Local/Temp/Temporary ASP.Net Files/
  • Made sure Debug -> Attack to Process -> Select had "Automatically determine the type of code to debug" was selected
  • Made sure the Properties -> Web -> Debuggerts had ASP.Net checked (my properties has ASP.NEt and Enable Edit and Continue Checked, Natvie Code SQL Server and Silverlight unchecked)
  • Confirmed Target framework in Properties -> Application was set to the same version (4.6) as in the Web.Config/App.Config files.

那么我在这里想念什么?为什么我不能再调试其他项目?

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天全站免登陆