Visual Studio中的远程调试:远程调试器不支持此版本的Windows

发布于 2024-10-15 08:57:52 字数 595 浏览 9 评论 0原文

我正在尝试在 VMware Workstation 7 和 Visual Studio 2010 Ultimate 中远程调试我的应用程序。我有几个图像(win 7 Ultimate、vista 等)。

我正在关注本教程: http://kristofmattei.be/2010/01/20/debugging-applications-in-virtual-machines-with-vmware-workstation-7-and-visual-studio- 2008-sp1-2/

每当我尝试在远程计算机上启动 msvsmon.exe 时,它​​都会显示: “Visual Studio远程调试器不支持这个版本的Windows”

在Win 7 Ultimate,Vista Premium和XP Home上尝试过,同样的情况。

有人可以帮我吗?

谢谢!

I am trying to remote debug my application in VMware workstation 7 and Visual studio 2010 ultimate. I habe several images (win 7 ultimate,vista,etc).

I am following this tutorial: http://kristofmattei.be/2010/01/20/debugging-applications-in-virtual-machines-with-vmware-workstation-7-and-visual-studio-2008-sp1-2/

Whenever I try to start msvsmon.exe on the remote computer it will say :
"The visual studio remote debugger does not support this edition of windows"

tried it with win 7 ultimate, vista premium and xp home, same situation.

Could someone help me out here?

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

彩扇题诗 2024-10-22 08:57:52

出现错误消息“Visual Studio 远程调试器不支持此版本的 Windows”是因为远程调试器默认尝试使用 Windows 身份验证,而这仅在 Windows 的“Pro”版本及更高版本中受支持。

但是,远程调试器确实适用于Windows的“Home”版本,您只需告诉它不要通过命令行使用身份验证。

(为什么它不允许您在没有任何参数的情况下启动它后执行此操作,为什么错误消息如此具有误导性(并且与支持的操作系统的官方列表相矛盾),以及为什么网络上关于此的信息如此之少,我不知道不知道。:))

要启动它,请运行以下命令:

msvsmon.exe /noauth /nosecuritywarn

当然,这会以最低安全模式启动它,因此您只想在安全网络上执行此操作。 (但这通常是一种最终使用 msvcmon 的模式,因为另一种模式需要设置比正常情况更大的 PITA。非常有用的工具,但确实需要一些简化。)

The error message "The visual studio remote debugger does not support this edition of windows" appears because the remote debugger tries to use Windows Authentication by default, and this is only supported in the "Pro" versions of Windows, and up.

However, the remote debugger does work with the "Home" versions of Windows, you just have to tell it not to use authentication via the command line.

(Why it doesn't let you do this after launching it without any arguments, why the error message is so misleading (and contradicts the official list of supported OS), and why there is so little info about this on the web, I don't know. :))

To launch it, run this:

msvsmon.exe /noauth /nosecuritywarn

Of course, this launches it in the lowest security mode, so you'd only want to do this on a secure network. (But that's usually the mode one ends up using msvcmon in anyway, as the other mode is an even bigger PITA to set up than it is normally. Very useful tool, but really could use some streamlining.)

﹏半生如梦愿梦如真 2024-10-22 08:57:52

无需使用VMWare 功能。

  1. 在来宾 VM 中运行 Visual Studio 2010 副本附带的 msvsmon 版本(可以在光盘/映像上找到用于远程调试内容的安装包)(如果调试 32 位进程,请使用 x86或者 x64(如果调试 64 位的话),Itanium(如果您需要)。

  2. 通过 msvsmon GUI 禁用身份验证并选择允许任何用户连接。

  3. 禁用虚拟机中的防火墙。

  4. 在主机上,您应该运行 Visual Studio 2010,在调试下拉列表中选择“附加到进程...”,然后在弹出的窗口中从下拉列表中选择远程(最初应该显示本地或其他内容),输入来宾 VM 的 IP 地址(应为专用网络 IP,即 10.1.??.?),或者使用 msvsmon GUI 显示的服务器名称。您应该获取来宾的进程列表,并且只应附加到与您运行的 msvsmon 版本匹配的任何进程(x86 或 64 ...或 Itanium laugh)。

注意:这些是基本说明,旨在向您展示它绝对有效,但这些说明仅适用于本机代码,因为托管需要安全连接。

No need to use VMWare features.

  1. Inside the guest VM run the version of msvsmon that came with your copy of visual studio 2010 (A setup package for just the remote deubgging stuff can be found on the disc/image) (use x86 if debugging a 32-bit process or x64 if debugging 64-bit one ,Itanium if you need to laugh).

  2. through the msvsmon GUI disable authentication and select allow any user to connect.

  3. disable the firewall in the VM.

  4. on the host machine you should be running visual studio 2010, under the debug dropdown select "attach to process..." and then on the window that pops up select remote from the dropdown that should say local or something initially, enter the IP address (should be private network IP i.e. 10.1.?.?) of the guest VM, alternatively use the server name displayed by the msvsmon GUI. You should get the process list for the guest and should only attach to any process that matches the version of msvsmon you ran (x86 or 64 ...or Itanium laugh).

NOTE: These are basic instructions to show you it definitely works but these instructions will only work for native code since managed requires a secure connection.

呢古 2024-10-22 08:57:52

如果您正在使用 VMWare VS 插件调试 .NET 应用程序并收到“找不到文件”类型的错误...请确保您已安装 .NET 运行时! :)

就像一个白痴一样,我设置了一个新的 XP 虚拟机,却忘记安装 .NET 运行时,并浪费了美好的一天来尝试让 VMWare VS 插件工作!

If you are debugging a .NET app using the VMWare VS Plugin and are getting a "file not found" type of error...make sure you have the .NET runtime installed! :)

Like a moron, I set up a fresh XP VM and forgot to install the .NET runtime and wasted a good day trying to get the VMWare VS Plug-In to work!

夏夜暖风 2024-10-22 08:57:52

Visual Studio2010 不支持 VSID http://communities.vmware.com/thread/282407

VSID is not supported by visual studio2010 http://communities.vmware.com/thread/282407

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文