尽管设置了选项,.NET Framework源代码步进仍无法正常工作 [英] .NET framework source stepping not working despite options set

查看:80
本文介绍了尽管设置了选项,.NET Framework源代码步进仍无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我启用了这些选项,如以下屏幕截图所示:

I have these options enabled, as shown in this screenshot:

我还选择了 System.Windows.Forms.dll 模块:

但它会跳过代码。具体来说,我将这段代码放在 ListBox 的子类中:

Yet it steps over the code. Specifically, I have this code in a subclass of ListBox:

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
{
    return base.ProcessCmdKey(ref msg, keyData);
}

我尝试在此处设置一个断点,然后使用F11进入该断点,但是

I tried to set a breakpoint there and then step into this with F11, but it just steps over.

要使它正常工作还缺少什么?

What is missing to get this to work?

推荐答案

他们没有发布VS2010 SP1随附的.NET 4.0最新补丁的源代码,因此,如果安装了该补丁,它将无法找到正确的源文件,因此无法显示它。这也是我的确切行为。回滚更新可以解决问题,但随后我将无法使用SP1附带的功能。

They didn't release the source code for the latest patch for .NET 4.0 that comes with VS2010 SP1 so if you have that installed, it won't be able to find the right source files thus not be able to display it. That's the exact behavior with me also. Rolling back the update solves the problem but then I don't get to use the goodies that come with SP1.

如果选择打印诊断消息的选项,则将会收到警告,指出在服务器上找不到源。您可以从referencesource.microsoft.com下载RTM源,否则可以手动浏览源。

If you select the option to print diagnostic messages, you'll get the warning that sources cannot be found at the server. You can download the RTM source from referencesource.microsoft.com and manually browse the sources otherwise.

这篇关于尽管设置了选项,.NET Framework源代码步进仍无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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