Visual Studio 2010中远程调试 [英] Visual Studio 2010 remote debugging

查看:286
本文介绍了Visual Studio 2010中远程调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试远程调试一个exe,但我不断收到错误消息。这里的配置:

I'm trying to remotely debug an exe, but I keep getting an error message. Here's the configuration:

在开发计算机:

  • 在Windows Vista的32位
  • 在Visual Studio 2010中
  • 防火墙禁用

在远程机器上:

  • 在Windows 7的64位
  • msvsmon.exe(从开发机共用)
  • MyProgram.exe(32位,C#,.NET 4.0中)
  • 防火墙禁用

这两款机器都在同一个域。我登录时使用相同的帐户,其中有两台机器的管理员权限。

Both machines are on the same domain. I'm logged in with the same account, which has administrator rights on both machines.

这是我做的:

  • 在远程计算机上启动msvsmon.exe(使用运行作为管理员')
  • msvsmon输出的:命名新的服务器域\登录@机创建。等待输入连接。
  • 从视觉工作室:调试>附加到进程的。与域\登录@机
  • 填充的预选赛的领域
  • Visual Studio的输出的:无法连接到名为机在Microsoft Visual Studio远程调试监视器。访问被拒绝。
  • msvsmon输出域\登录连接
  • Starting msvsmon.exe on the remote computer (using 'run as admin')
  • msvsmon output: new server named domain\login@machine created. Waiting for input connections.
  • From visual studio: Debug > Attach to process. Filling the Qualifier field with domain\login@machine
  • visual studio output: Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named "machine". Access denied.
  • msvsmon output: domain\login connected

我错过了什么?

编辑:

看起来像它的工作,如果在开发计算机是64位的太(尝试在Win7的X64)。所以,现在的问题是:如何使它从我的Windows Vista 32工作

Looks like it's working if the dev machine is 64-bit too (tried on a Win7 x64). So now the question is: how to make it work from my Windows Vista 32?

推荐答案

因此​​,答案是:这是不可能的。

So the answer is: it's not possible.

要在远程的64位计算机上调试进程(32位或64位),您必须在本地使用一个64位的机器。

To debug a process (either 32 or 64 bits) on a remote 64-bit machine, you have to use a 64-bit machine locally.

这篇关于Visual Studio 2010中远程调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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