Visual Studio 2010中 - 无法通过.NET框架步骤4源(presentationCore.dll) [英] Visual Studio 2010 - Can't step through .NET Framework 4 source (PresentationCore.dll)

查看:764
本文介绍了Visual Studio 2010中 - 无法通过.NET框架步骤4源(presentationCore.dll)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

的问题:我得到一个nullref System.Windows.Interop.HwndKeyboardInputProvider的FilterMessage方法,我真的很想尝试调试里面,但没有能够单步调试源我不知道自己还能做些什么。

The problem: I'm getting a nullref inside of System.Windows.Interop.HwndKeyboardInputProvider's FilterMessage method that I'd really like to try to debug, but without being able to step through the source I'm not sure what else to do.

我试过 设置Visual Studio 2010中,让我一步通过.NET Framework源(特别System.Windows.Interop.HwndKeyboardInputProvider的FilterMessage方法,presentationCore.dll)。我无法让我的Visual Studio中显示的.NET源代码进行调试。我已经按照各种不同的文章/博客表项,但似乎没有奏效。我试了一下:

I've tried Setting up Visual Studio 2010 to allow me to step through the .NET Framework source (specifically System.Windows.Interop.HwndKeyboardInputProvider's FilterMessage method, in PresentationCore.dll). I'm having trouble getting my visual studio to display .NET source for debugging. I've followed various different articles/blog entires, but nothing seems to be working. What I've tried:

在VS2010选项 - >调试菜单,启用启用.NET Framework源踏步,enaling启用源服务器的支持,禁用要求源文件的原始版本完全匹配, 这里按照指示:(<一href="http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-$c$c.aspx">http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-$c$c.aspx)和安装基准源,并设立VS使用符号文件包含的参考源,随着基础篇/博客条目网上一些其他的尝试。用这种方法,我可以在我的模块窗口看到,$ P符号$ psentationCore.dll被加载,但我仍然得到没有源可用时,试图踏进我试图调试区域窗口。

In the VS2010 Options->Debugging menu, enabling "Enable .NET Framework source stepping", enaling "Enable source server support", disabling "Require source files to exactly match the original version", following the instructions here: (http://blogs.microsoft.co.il/blogs/arik/archive/2010/07/12/step-into-net-framework-4-0-source-code.aspx) and installing the reference source and setting up VS to use the symbol files included with the reference source, along with several other attempts based on articles/blog entries online. Using that method, I can see in my modules window that the symbols for PresentationCore.dll are being loaded, but I still get the "No source available" window when trying to step into the area I'm trying to debug.

模块窗口显示的符号被从那里我安装了.NET 4的参考源的路径加载:

Modules window showing that Symbols are being loaded from the path where I installed the .NET 4 reference source:

调用堆栈显示,好像我的的是能够进入presentationCore.dll的System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage方法:

Call stack showing that it seems like I should be able to step into PresentationCore.dll's System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage method:

无资源可用窗口中,用浏览查找源已禁用:

The "No Source Available" window, with "Browse to Find Source" disabled:

我真的不知道还有什么尝试?

I'm not really sure what else to try?

推荐答案

一个可能的原因是确保净组装是因为相同的版本在项目设置。我有同样的问题,因为.NET项目设定为3.5,源$ C ​​$ C在4.5

One possible reason is make sure the .Net assemble is as the same version as set in the project. I had the same problem, because the .Net in project was set to 3.5 and the source code was in 4.5

这篇关于Visual Studio 2010中 - 无法通过.NET框架步骤4源(presentationCore.dll)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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