简体   繁体   English

Visual Studio 2015社区-调试器异常

[英]Visual Studio 2015 Community - Debugger Acting Strange

Either I'm missing something beyond obvious here, or something has gone seriously wrong with my development environment under the debugger. 我可能遗漏了一些超出此处显而易见的内容,或者在调试器下的开发环境出现了严重错误。

Here's the first call, with the value for the parameter shown: 这是第一个调用,其中显示了参数的值:

我们在这里有价值

And then, when stepping into the method, the next line on the call stack, I am seeing: 然后,当进入方法时,调用堆栈的下一行,我看到:

不在这里!

I have cleaned the solution, rebuilt everything with no errors, restarted Visual Studio, rebooted, and it is still acting like this. 我已经清理了解决方案,没有错误地重建了所有内容,重新启动了Visual Studio,重新启动,它仍然像这样工作。

What is going on here? 这里发生了什么?

This was due to the assembly being called being in Release mode while the calling assembly was in Debug. 这是由于在调用程序集处于Debug时,程序集被称为处于Release模式。

We had a custom build configuration called "Staging" which is what I was running in Visual Studio. 我们有一个名为“ Staging”的自定义生成配置,这是我在Visual Studio中运行的配置。 Every assembly was in "Debug" in this configuration except for that particular one which was being called. 在此配置中,每个程序集都处于“调试”状态,但被调用的程序集除外。

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

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