简体   繁体   English

无法调试XNA Game1类-VS2015

[英]Unable to Debug XNA Game1 Class - VS2015

As the title states, I am unable to debug my Game1 class only. 如标题所示,我无法仅调试我的Game1类。 If I place a breakpoint in Game1 and start debugging, I get the message 如果我在Game1放置一个断点并开始调试, Game1收到消息

The breakpoint will not currently be hit. The source code is different from the original version.

I have not made any recent changes to this file. 我尚未对此文件进行任何最新更改。 If I place a breakpoint in a different class, it works just fine. 如果我将断点放在另一个类中,则可以正常工作。

I have: 我有:

  • Manually deleted the PDB files 手动删除PDB文件
  • Restarted Visual Studio 重新启动Visual Studio
  • Cleaned and rebuilt the solution 清理并重建解决方案
  • Closed and reopened the solution 关闭并重新打开解决方案
  • Restarted my computer 重新启动我的电脑

Despite not making any changes, the debugger thinks my code file has changed and won't hit any breakpoints. 尽管没有进行任何更改,调试器仍认为我的代码文件已更改,不会遇到任何断点。 I can turn off the "require code to be the same" option, but I'd rather not do this. 我可以关闭“要求代码相同”选项,但我不想这样做。

Edit: It's also worth noting that this was working before. 编辑:值得注意的是,这之前工作。 I've been working on this particular solution for about a month, and this just started this morning. 我已经在这个特定的解决方案上工作了大约一个月,而这个工作从今天早上才开始。 No changes were made to the file after the last successful debug. 上次成功调试后,未对该文件进行任何更改。

Does anyone know what might be causing this issue? 有谁知道是什么原因导致此问题?

Make sure the problem project is being built as part of the current Build configuration. 确保将问题项目作为当前Build配置的一部分进行构建。 :-) :-)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM