我可以在 Windows XP 上使用 Visual Studio 2010 远程调试器从 Visual Studio 2012 调试 .Net 4.0 应用程序吗? [英] Can I use the Visual Studio 2010 remote debugger on Windows XP to debug a .Net 4.0 app from Visual Studio 2012?

查看:58
本文介绍了我可以在 Windows XP 上使用 Visual Studio 2010 远程调试器从 Visual Studio 2012 调试 .Net 4.0 应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以在 Windows XP 上使用 Visual Studio 2010 远程调试器从 Visual Studio 2012 调试 .Net 4.0 应用程序吗?

Can I use the Visual Studio 2010 remote debugger on Windows XP to debug a .Net 4.0 app from Visual Studio 2012?

我正在尝试,这是我的 XP 机器的屏幕截图(我暂时禁用了本地防火墙):

I am trying to, here is a screenshot of my XP machine (I have disabled the local firewall temporarily):

这是 Visual Studio 2012(远程机器框中的文本与 Visual Studio 远程调试器指示的服务器名称相同):

Here is Visual Studio 2012 (the text in the remote machine box is identical to the server name indictaed by the Visual Studio remote debugger):

当我尝试调试时,出现此错误:

When I try to debug, I get this error:

如果我将计算机名称更改为其他任何名称,则会出现此错误:

If I change the computer name to anything else, I get this error:

能够在 Windows XP 上从 Visual Studio 2012 远程调试 .Net 4.0 应用程序是我的一厢情愿还是应该可行?

Is being able to debug .Net 4.0 apps remotely from Visual Studio 2012 on Windows XP wishful thinking on my part or should this work?

只是提供一些背景知识,我们有一些 .Net 4.0 代码可以在 Windows 7 上运行,但在 XP 下会崩溃.我知道 .Net 4.5 编译器是 4.0 编译器的就地升级,如果您在 .Net 4.0 中存在已在 4.5 中修复的错误,您的 4.0 代码将编译良好,因为您使用的是最新版本,固定编译器,但您可能会在实际的 .Net 4.0 机器上遇到运行时问题.我怀疑可能是这种情况,并希望对其进行测试.

Just to give some background, we have some .Net 4.0 code running on Windows 7 ok, but crashing under XP. I understand that the .Net 4.5 compiler is an in place upgrade of the 4.0 compiler, and if you have a bug in .Net 4.0 which has been fixed in 4.5, your 4.0 code will compile fine because you are using the more up to date, fixed compiler, but you may get runtime issues on actual .Net 4.0 machines. I suspect this may be the case and wish to test it out.

而且我们必须使用 Visual Studio 2012,我不制定规则!

And we have to use Visual Studio 2012, I don't make the rules!

推荐答案

MSDN 博客 告诉我们(2012 年 10 月 8 日)不支持从 VS 2012 到 XP 的远程调试:

The MSDN blog tells us (2012 Oct 8) that there is no support for remote debugging from VS 2012 to XP:

远程调试Visual Studio 2012 的远程工具不支持在 XP 客户端上进行远程调试.需要在 Windows XP 上调试时,建议 使用旧版 Visual Studio(例如 Visual Studio 2010)的调试器进行本地或远程调试.这与 Visual Studio 2012 RTM 的 Windows Vista 体验一致,后者是运行时目标,但不是远程调试目标.

Remote Debugging The Remote Tools for Visual Studio 2012 do not support remote debugging on an XP client. When debugging on Windows XP is required, it is recommended to use the debuggers of an older version of Visual Studio, such as Visual Studio 2010, for local or remote debugging. This is in line with the Windows Vista experience for Visual Studio 2012 RTM, which is a runtime target but not a remote debugging target.

这篇关于我可以在 Windows XP 上使用 Visual Studio 2010 远程调试器从 Visual Studio 2012 调试 .Net 4.0 应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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