无法在VS 2017中调试框架代码(v4.7) [英] Cannot Debug into Framework Code (v4.7) in VS 2017

查看:73
本文介绍了无法在VS 2017中调试框架代码(v4.7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试跟踪.NET Framework代码。我可以用最好的Google搜索谷歌,我已经看到了这个
shou ld 如何工作的所有建议但是我只是让它工作了几年前。我看到的问题是调试器跳过框架代码,从不插入它。

I'm trying to trace into .NET Framework code. I can search Google with the best of them and I've seen all the advice of how this should work but I've only gotten it to work once a few years ago. The problem I see is that the debugger skips right over the Framework code, never stepping into it.

我搜索了Stackoverflow,我看到了(过时的)建议用于在referencesource.microsoft.com上配置VS 2013。什么都不行。

I've searched Stackoverflow and I've seen the (out-of-date) advice for configuring VS 2013 on referencesource.microsoft.com. Nothing works.

根据VS"帮助|关于"窗口,我正在安装.NET Framework v4.7.02531运行VS 2017 v15.3.2。我的项目配置为使用Framework 4.7。

According to the VS "Help | About" window, I'm running VS 2017 v15.3.2 with .NET Framework v4.7.02531 installed. My project is configured to use Framework 4.7.

以下是我的设置来自"工具"|选项...... |调试器|一般"和 "工具|选项...... |调试器|符号"。 我还包括在调试会话期间显示模块和输出窗口的屏幕截图。 (你需要放大b $ b才能看到这些窗口。)两个窗口都表明.PDB文件
已成功加载
,但仍然无法追溯到框架代码。

Below are my settings from "Tools | Options... | Debugger | General" and "Tools | Options... | Debugger | Symbols". I've also included screen shots that show the Modules and Output windows during a debugging session. (You'll have to zoom in to see these windows.) Both windows indicate the .PDB files have been loaded successfully, yet still, I cannot trace into framework code.

顺便说一句,我已经尝试取消选中"要求源文件与原始版本完全匹配"的复选框,但无济于事。

Btw, I have tried unchecking the checkbox for "Require source files t exactly match the original version", to no avail.

请帮忙! 

Please help! 




推荐答案

嗨汤姆Baxter,

Hi Tom Baxter,

根据您的描述,我使用Visual Studi创建了一个示例.NET Framework 4.5和4.6版本控制台应用程序o我的Windows 7机器上的2017 Enterprise(因为它是Windows 7机器,我无法安装.NET Framework 4.7)。当我启动
调试.NET Framework类时,它们都工作正常。

According to your description, I create a sample .NET Framework 4.5 and 4.6 version Console application with my Visual Studio 2017 Enterprise on my Windows 7 machine (since it is a Windows 7 machine, I could not install .NET Framework 4.7). When I start debugging .NET Framework classes, all of them working fine.

然后我尝试安装Windows 10的另一台机器。我导入相同的Visual Studio设置从我的Windows 7机器到我的Windows 10 VS2017,我无法调试.NET Framework类,无论是.NET Framework 4.7还是以前的
版本(4.6,4.5)。

Then I try on my another machine which installed Windows 10. And I import the same Visual Studio settings from my Windows 7 machine to my Windows 10 VS2017, I could not debug into the .NET Framework classes, no matter it is .NET Framework 4.7 nor previous version (4.6, 4.5).

所以我担心此问题与Visual Studio 2017设置无关。 Windows版本应该存在一些问题。我已将此问题提交给Visual Studio Developr社区。您可以投票并为此反馈添加评论。

So I'm afraid that this problem is not related to Visual Studio 2017 settings. There should be some problem on Windows version. I have submit this issue to Visual Studio Developr Community. You could vote and add comments for this feedback.

https://developercommunity.visualstudio.com/content/problem/101533/could-not-debug-net-framework-on-windws-10-machine.html

在Windows 10上解决此问题之前,我建议您使用以前版本的Windows调试.NET Framework。

Before this issue resolved on Windows 10, I sugegst you debugging .NET Framework with previous version of Windows.

最好的问候,

Weiwei

Best Regards,
Weiwei


这篇关于无法在VS 2017中调试框架代码(v4.7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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