且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Visual Studio(VS2008),Windows窗体应用程序的远程调试

更新时间:2023-12-06 13:56:28

p>这是它对我有用的:



远程计算机:Microsoft Virtual PC,IHS\RDM附加到我的公司域名,以jdoe身份登录,管理员帐户。



本地计算机:附加到本地域名,以jdoe,管理员帐户登录。



1)远程计算机:安装rdbgsetup.exe(从Visual Studio 2005\Disk 2\Remote Debugger\x86)



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



3)远程计算机:msvsmon->工具 - >权限添加用户MYDOMAIN\jdoe(我必须这样做,开始)



4)本地计算机:运行msvsmon。



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



)本地计算机,vs2005-> debug->附加到进程。运输:默认,限定符:jdoe @ RDM

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


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

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.

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

My setup:

  • 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):

    runas /u:user1 msvsmon.exe

Can Someone help me please?

Thanks.

This is how it worked for me:

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

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

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

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

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

4) local computer: run msvsmon.

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

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

7) Refresh, and voila; a process list!