无法使用的Visual Studio 2013年调试管理code("无法计算EX pression"错误 - 我使用调试版本)(请注意,VS 2012的作品)请注意、错误、版本、作

2023-09-02 01:52:52 作者:嘤嘤嘤

我的.NET应用程序(GUI和PowerShell中)对建造4.5。我的操作系统是服务器2012年。当我附上我的应用程序到2013年的Visual Studio,调试器不工作的时候。它不评估EX pression或显示当地人(以及监视窗口/即时窗口没有什么作品 - 它的作为,如果该项目是建立与释放)。但我有建立与调试配置。正如提到的同样的事情,工作时,我简单地用VS日(是的,我有2k13和2K12 SXS)

I have .net application (GUI as well as PowerShell) built against 4.5. My OS is server 2012. When I attach my application to 2013 visual studio, the debugger is not working sometimes. Its not evaluating expression or showing locals (and also watch window/immediate window nothing works - its as if the project is build with release). But I have build with 'Debug' configuration. And as mentioned same thing works when I simply attach with VS 2012 ( yes, I have 2k13 and 2k12 SXS)

请注意,如果我附上相同的过程,相同的设置(托管调试),到Visual Studio 2012年,始终工作。

Please note that if I attach the same process with the same settings (managed debugging), to Visual Studio 2012 it always works.

我确定符号被加载(通过检查在Visual Studio +调试+窗口模块选项卡上),断点被命中。

I made sure the symbols are loaded (by checking modules tab in visual studio + debug + windows), break points are hit.

这可能是什么问题,有什么想法?所有的更新均达到最新以及

Any thoughts on what might be the issue? All the updates are up-to-date as well.

它的那种恼人的推出VS 2012只是为了调试,当我使用VS 2k13 IDE进行开发。

Its kind of annoying to launch vs 2012 just to debug, when I am using VS 2k13 IDE for development.

商祺!

推荐答案

如果你正面临着​​同样的问题,请看看http://weblog.west-wind.com/posts/2013/Nov/21/Visual-Studio-2013-Could-not-evaluate-Ex$p$pssion-Debugger-Abnormality了解详细信息。

If you are facing the same issue, please look at http://weblog.west-wind.com/posts/2013/Nov/21/Visual-Studio-2013-Could-not-evaluate-Expression-Debugger-Abnormality for details.

下面是它解决了我的答案:

Here is the answer which solved for me:

我在工具设置标志使用管理兼容模式|选项​​|调试器|一般。

I have set the flag "use managed compatibility mode" in Tools | Options | Debugger | General.

有关详细信息,看一看的联系,他解释说好听的一个故事:)

For details, take a look at the link as he explained it nicely as a story :)

很高兴它的工作,否则我只是要加载的项目在VS 2K12只是这恼人的调试。

Am happy it worked, otherwise I just had to load project in vs 2k12 just to debug it which is annoying.

修改于2014年6月12日

我已经更新了我的开发环境是的Visual Studio 2013更新2 (http://www.microsoft.com/en-us/download/details.aspx?id=42666) (根据以下玛丽亚的建议),并取消使用管理兼容模式下,我将测试我的应用程序(PS的cmdlet,GUI,服务),并更新你的几个星期,如果调试器是确定适合我。

I have updated my dev environments with visual studio 2013 update 2 (http://www.microsoft.com/en-us/download/details.aspx?id=42666) (as per Maria's suggestion below) and removed "using managed compatibility mode". I will be testing my apps (ps cmdlets, gui, services) and update you in couple of weeks if the debugger is ok for me.

修改2014年6月26日

我会试探我的应用程序,幸运的是我的一切工作很好:)。即使是调试器做pretty的好工作有新的异步/待机模式。所以,看你能不能升级到'更新2' - 希望这部作品在您的环境太?感谢玛丽亚和调试器的团队!

I have tested my apps and luckily for me everything is working nicely :). Even the debugger is doing pretty good job with new async/await model. So, see if you can upgrade to 'update 2' - hopefully this works in your environment too?. Thanks to Maria and debugger's team!

问候。