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

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

问题描述

我正在尝试远程调试Windows窗体应用程序(C#),但我总是收到以下错误:


无法连接到Microsoft Visual Studio远程调试监视器
命名为XXX。 Visual Studio Remote
目标计算机上的调试器不能
连接到此计算机。
身份验证失败。请参阅帮助
以获得帮助。


我尝试根据MSDN指南配置,但我没有可以使其工作。



我的设置:




  • 开发计算机 - XP(x86)
    连接到一个域。

  • 测试计算机 - 连接到域的
    的Vista(x86)

  • 我有机器之间的
    的网络连接。

  • 我在测试
    计算机
    (user1)中创建了一个本地用户,其名称为我的域
    用户,我运行Visual Studio(mydomain\user1)。设置相同的密码。

  • 在测试计算机上,我正在运行msvsmon.exe作为应用程序(而不是服务),我使用我已经创建的用户使用runas命令运行它。 (user1):



    runas / u:user1 msvsmon.exe




可以有人帮我吗?



谢谢。

解决方案

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!

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

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