如何从远程计算机在Visual Studio 2012来调试Asp.Net MVC应用程序 [英] How to debug an Asp.Net Mvc Application in Visual Studio 2012 from a remote computer

查看:684
本文介绍了如何从远程计算机在Visual Studio 2012来调试Asp.Net MVC应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两台电脑连接和我进行了远程桌面连接计算机A 计算机B

I have two computers connected and I have made Remote Desktop Connection from Computer A to Computer B.

我打开的Visual Studio 2012 计算机B ,并开始调试Asp.Net MVC应用程序,它工作正常在本地机器上的浏览器,它也托管 IIS 。但是,当我打开MVC应用程序从计算机A的浏览器,比debuging不工作,即,没有断点被击中。

I opened Visual Studio 2012 in Computer B , and started debugging Asp.Net MVC Application , it works correctly in browser of local machine and it is also hosted on IIS. But when I open that MVC Application from Computer A's browser , than debuging does not work , i.e. no breakpoints are hit.

我已搜查一番,并在远程调试监视器来了,但我不能够使用它。

I have searched about it , and came across Remote Debugging Monitor , but I am not able to use it.

我需要帮助这个。

推荐答案

如果您的远程机器也是IIS服务器:

如果您共享远程调试器文件夹了,因此它可以在远程计算机上进行访问。文件夹,2012年应该是

If you share your Remote Debugger Folder out so it can be accessed on the remote machine. Folder for 2012 should be

C:\\ Program Files文件(x86)的\\微软的Visual Studio 11.0 \\ Common7 \\ IDE \\远程调试器

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Remote Debugger

在远程计算机访问该文件夹
它会给你一经推出服务器名称。然后在本地计算机上,在VS2012在调试菜单中选择附加到进程。

On the remote machine access the folder and run the msvsmon.exe It will give you a server name once launched. Then on your local machine, in VS2012, in the debug menu, select attach to process.

输入远程调试器提供的服务器名进入预选赛现场,并连接到的w3wp.exe 过程

Enter the server name provided by the remote debugger into the Qualifier field and attach to the w3wp.exe process

如果您的IIS服务器的本地主机与远程计算机连接到它:

您不需要远程调试,只重视从调试菜单处理,并选择的w3wp.exe 的过程。

You dont need remote debugger, just attach to process from the debug menu and select the w3wp.exe process.

有关良好的措施,这里是MSDN

这篇关于如何从远程计算机在Visual Studio 2012来调试Asp.Net MVC应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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