Search code examples
asp.net-mvcweb-deploymentvisual-studio-debugging

Debugging Web Application on Visual Studio 2010 after Deployment


I've deployed a web application in IIS7. I working with a client and trying to debug the website. I can access myUrl/ApplicationName.aspx?user=user1. I attached the process to Visual Studio using Tools -> Attached Process and have a breakpoint on the page_load. When I access myUser/ApplicationName.aspx?user=user1/ApplicationName.aspx?user=user1, I was expected to reached the breakpoint, but it never did. What am I doing wrong?


Solution

  • Remote Debugging needs to be enabled on the server. Here are the instructions for setting it up: http://msdn.microsoft.com/en-us/library/bt727f1t(v=vs.100).aspx

    Once you have msvsmon.exe running and your firewalls configured correctly you should be able to hit your breakpoint.