在Visual Studio(VS2008)远程调试,Windows窗体应用程序 [英] Remote Debugging in Visual Studio (VS2008), Windows Forms Application

查看:426
本文介绍了在Visual Studio(VS2008)远程调试,Windows窗体应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

喜 我想远程调试Windows窗体应用程序(C#),但我总是收到此错误:

Hi I'm trying to Remote Debugging a Windows Forms Application (C#), but i'm always getting this error:

无法连接到Microsoft Visual Studio远程调试监视器   名为XXX。 Visual Studio远程   调试器在目标计算机上不能   连接返回到这台计算机。   验证失败。请参阅帮助   寻求帮助。

Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named 'XXX. The Visual Studio Remote Debugger on the target computer cannot connect back to this computer. Authentication failed. Please see Help for assistance.

我试图根据MSDN导游的配置,但我无法使它工作。

I tried to config according to the MSDN guides but i was not able to make it work.

  • 开发计算机 - XP(x86)的那 被连接到一个域。
  • 测试计算机 - 景观(86),它是不会     连接到域。
  • 在我的网络连接     机器。
  • 我在测试创建了一个本地用户     计算机(用户1)用我的域名     用户说我运行在Visual Studio(MYDOMAIN \用户1)。设置相同的密码。
  • 在测试计算机上我跑msvsmon.exe作为应用程序(而不是作为服务),我运行它使用的运行方式命令,我已经创建的用户。 (用户1):

  • Development Computer - XP (x86) that is connected to a domain.
  • Test Computer - Vista (x86) that is NOT connected to a domain.
  • I have network connection between the machines.
  • I created a local user in the Test computer (user1) with the name of my domain user that I run the Visual Studio (mydomain\user1). setup the same password.
  • On The Test Computer i'm running "msvsmon.exe" as application (not as services), i'm running it using "runas" command with the user that i have created. (user1):

运行方式/ U:用户1 msvsmon.exe

runas /u:user1 msvsmon.exe

有人可以帮我吗?

感谢。

推荐答案

这是它如何为我工作:

远程计算机:微软的Virtual PC,IHS \ RDM贴在我的企业域,身份登录JDOE,管理员帐户

Remote computer: Microsoft Virtual PC, "IHS\RDM" attached to my corporate domain, logged in as jdoe, administrator account.

本地计算机。附地域,身份登录JDOE,管理员帐户

Local computer: Attached to local domain, logged in as jdoe, administrator account.

1)远程计算机:安装rdbgsetup.exe(从Visual Studio 2005 \盘2 \远程调试器\ 86)

1) remote computer: install rdbgsetup.exe (from Visual Studio 2005\Disk 2\Remote Debugger\x86)

2)远程计算机:RUNAS /用户MYDOMAIN \ JDOE / netonly msvsmon

2) Remote computer: RUNAS /user MYDOMAIN\jdoe /netonly msvsmon

3)远程计算机:msvsmon- - >工具 - >权限添加用户MYDOMAIN \ JDOE(我有这样每次我的时间做重新启动)

3) Remote computer: msvsmon->Tools->permissions add user "MYDOMAIN\jdoe" (I have to do this every time I re-start)

4)本地计算机:运行msvsmon

4) local computer: run msvsmon.

5)本地计算机,msvsmon- - >工具 - >权限,添加对象类型:电脑,IHS \ RDM

5) local computer, msvsmon->Tools->permissions, add object types: "computers", "IHS\RDM"

6)本地计算机,vs2005->调试 - >附加到进程。交通:默认,限定符:JDOE @ RDM

6) local computer, vs2005->debug->attach to process. Transport: Default, Qualifier: jdoe@RDM

7)刷新,瞧;一个进程列表!

7) Refresh, and voila; a process list!

这篇关于在Visual Studio(VS2008)远程调试,Windows窗体应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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