How to debug an Asp.Net Mvc Application in Visual Studio 2012 from a remote computer

烈酒焚心 提交于 2019-11-29 14:54:53

问题


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

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.

I need help in this.


回答1:


If your remote machine is also the IIS server:

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)\Microsoft Visual Studio 11.0\Common7\IDE\Remote Debugger

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.

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

if your IIS server is the localhost and your remote machine connects to it:

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

For good measure, here is the MSDN



来源:https://stackoverflow.com/questions/18585852/how-to-debug-an-asp-net-mvc-application-in-visual-studio-2012-from-a-remote-comp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!