Visual Studio 2012“源不可用” “代码不运行”同时调试Win Form Apps [英] Visual Studio 2012 "Source not Available" "Code not Running" while debugging Win Form Apps

查看:203
本文介绍了Visual Studio 2012“源不可用” “代码不运行”同时调试Win Form Apps的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试调试winform应用程序时,当调试器击中断点时,我收到消息Source not Available和Code not running,如果我按F11,应用程序将继续运行。奇怪的是,控制台应用程序似乎调试正常。我尝试重置设置等,其中没有一个似乎有帮助。我可以通过创建一个空的Win Forms应用程序并在Load方法中放置一行来重新创建问题:

When I attempt to debug win forms apps, when the debugger hits the breakpoint I get the message "Source not Available" and "Code not running" and if I push F11 the app keeps on running. The weird thing, Console apps seem to debug fine. I tried resetting the setting and the like, none of which seemed to help. I can recreate the problem by creating an empty Win Forms app and putting a single line in the Load method:

Console.WriteLine("Test");

任何建议?

推荐答案

我终于想出了这个问题,我发贴给那些可能有同样问题的人。问题是与我的机器上的Telerik JustMock安装有关。显然他们的2013 Q3发行版有问题。卸载它或更新到最新版本做的伎俩。

I finally figured out the problem and I'm posting this for other who may have the same issue. The problem was related to Telerik JustMock installation on my machine. Apparently their 2013 Q3 release had issues. Uninstalling it or updating to the latest version did the trick.

ASP.NET MVC5 / IIS Express无法调试 - 代码未运行

http ://feedback.telerik.com/Project/105/Feedback/Details/63749-unable-to-debug-asp-net-projects-with-q3-2013

这篇关于Visual Studio 2012“源不可用” “代码不运行”同时调试Win Form Apps的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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