在生产Web服务器上安装Visual Studio的原因 [英] Reasons to Install Visual Studio on a Production Web Server

查看:100
本文介绍了在生产Web服务器上安装Visual Studio的原因的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人出于正当理由在Web服务器上安装Visual Studio的唯一目的是服务于传入的请求吗?认真地说,有人有这样做的特殊原因吗?

Is there a legitimate reason for someone to have Visual Studio installed on a Web Server whose sole purpose is to serve incoming requests? Seriously, are there any particular reasons someone might do this?

推荐答案

一种可能的用途是将附加到Web服务器并调试某些错误或内存泄漏,事实证明在开发机器上找不到该错误或内存泄漏.根据设置,远程调试可能是一个更好的选择.对于我们来说,它不是ISV,因为我们经常通过LiveMeeting和其他非生产性的方法连接到客户系统,以诊断生产中的问题.不得不调试客户系统上正在运行的过程的几次,我下载并使用了

One possible use is to attach to the web server and debug some kind of error or memory leak that has proven impossible to find on a development machine. Depending on the setup, remote debugging might be a better option. For us, as an ISV, it is not, because we often connect to customer systems via LiveMeeting and other very unproductive means to diagnose problems in production. The few times I have had to debug a running process on a customer system, I downloaded and used WinDbg.

调试生产系统的更好选择是使用跟踪,日志记录和内存转储.有人可以使用Visual Studio附加到w3wp.exe进程并保存内存转储文件.但是,如果他们需要的只是内存转储,则还有其他更有效的方法来收集内存转储:任务管理器流程浏览器,等等.

A better option for debugging production systems is to use tracing, logging, and memory dumps. Someone could use Visual Studio to attach to the w3wp.exe process and save a memory dump file. However, if all they need is a memory dump, there are other more efficient means of gathering one: Task Manager, Process Explorer, etc.

有人可能还会使用它来查看XML,配置或html文件,但它是一个非常昂贵的编辑器,但这不是合法用途.

Someone also might be using it a very expensive editor for viewing XML, config, or html files, but that is not a legitimate use.

我衷心希望没有人在这台机器上实际编写代码.如果有访问权限,则可以在用户文件夹中快速搜索项目文件.

I sincerely hope nobody is actually writing code on this machine. You might do a quick search for project files in user folders, if you have accesss.

那么,为什么有人会在生产Web服务器上安装Visual Studio?是的,这可能很有用.但这并不意味着它是一个好主意.

So are there reasons someone might install Visual Studio on a production web server? Yes, it could be useful. But that doesn't mean it's a good idea.

这篇关于在生产Web服务器上安装Visual Studio的原因的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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