简体   繁体   English

没有管理员帐号的VS2012远程调试

[英]VS2012 remote debugging without an administrator account

Let me explain a little about us. 让我解释一下我们。 We are a group of developers who have a dedicated server for our team, but it is still administered by another group that enforces organization wide policy. 我们是一群为我们的团队配备专用服务器的开发人员,但它仍由另一个执行组织范围政策的团队管理。 Their ideal scenario would be to set remote debugging up as a service and allow anyone in our group to access the debugger through our local workstations. 他们理想的情况是将远程调试设置为服务,并允许我们组中的任何人通过我们的本地工作站访问调试器。 To give our group administrator privileges on the server, is likely to be the last option. 要在服务器上授予我们的组管理员权限,可能是最后一个选项。

We have looked through a list of Microsoft pages, which are listed below: 我们查看了Microsoft页面列表,如下所示:

-- http://msdn.microsoft.com/en-us/library/9y5b4b4f.aspx -- - http://msdn.microsoft.com/en-us/library/9y5b4b4f.aspx -

This article explains the reasoning behind why an administrator account is suggested. 本文解释了为什么建议管理员帐户的原因。 -- http://blogs.msdn.com/b/greggm/archive/2008/05/15/visual-studio-remote-debugger-service-user-account-requirements.aspx -- - http://blogs.msdn.com/b/greggm/archive/2008/05/15/visual-studio-remote-debugger-service-user-account-requirements.aspx -

This article points to the need of having an administrator logged into the server while another user is remotely debugging. 本文指出在另一个用户远程调试时需要让管理员登录到服务器。 Not an option. 不是一种选择。 -- http://msdn.microsoft.com/en-us/library/aa291278(v=vs.71).aspx -- - http://msdn.microsoft.com/en-us/library/aa291278(v=vs.71).aspx -

-- http://blogs.msdn.com/b/greggm/archive/2004/10/04/237519.aspx -- -- http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/2cd87191-f0fb-462b-8367-c1b7e3ddf443/ -- - http://blogs.msdn.com/b/greggm/archive/2004/10/04/237519.aspx - - http://social.msdn.microsoft.com/Forums/en-US/vsdebug / thread / 2cd87191-f0fb-462b-8367-c1b7e3ddf443 / -

We have firewall permissions set up where we can see the server running msvsmon. 我们设置了防火墙权限,我们可以看到运行msvsmon的服务器。 Most of what has been found, states that when the remote debugger is running as a service on the remote machine, only administrators can connect to the debugger. 已发现的大部分内容都表明,当远程调试器作为远程计算机上的服务运行时,只有管理员才能连接到调试器。 So far we have not found a practical solution. 到目前为止,我们还没有找到实际的解决方案

Is there anyway to setup a network group that would be able to access the remote debugger, without giving the group administrator privileges? 无论如何设置一个能够访问远程调试器的网络组,而不给予组管理员权限? Other options? 其他选择?

As far as I know you can add the user that you want to a special group allowing Debug permissions, if you want to prevent a write access on records in production you need to configure your database to remove those privilege for that group. 据我所知,您可以将您想要的用户添加到允许调试权限的特殊组中,如果要阻止对生产中的记录进行写访问,则需要配置数据库以删除该组的这些权限。 Btw you need to have the same pdb files that you compiled when your release was done. 顺便说一下,你需要拥有在发布完成后编译的相同pdb文件。 In that way you will be able to debug your code, other way you will be blind to see where the values come from. 通过这种方式,您将能够调试代码,否则您将无视其中的值来源。 Is a good practice to keep the pdbs from your last release and have them accessible for your developer team. 将pdbs与上一版本保持一致并让开发人员可以访问它们是一种很好的做法。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM