Search code examples
asp.netvisual-studio-2012visual-studio-debuggingterminal-services

ASP.Net local debug on a Windows Server 2008 R2 Terminal Services Server


We have a Windows Server 2008 R2 box setup as a Terminal Server with Visual Studio 2012 installed on it for remote developers to be able to do development on our ASP.net systems.

We would like to be able to do debugging on out projects the same way we do when developing on our local machines using visual studios internal development server.

I am trying to start local debugging on an ASP.Net project (F5) in VS2012 - the project compiles - IE comes up with my localhost url and then it just spins with "connecting..." and the page never comes up.

Pulling up the same workspace on a local machine and debugging comes up just fine.

I've exhausted my google-fu on looking for solutions here and humbly ask you all for any insight.


Solution

  • Visual Studio works a little differently when you are debugging on a server. You don't really want to use VStudio to play/debug on a web server. You need to use the menu option "Debug", "Attach to process". There will be several processes running, so it might take a few tries to find the right process.

    Be careful though. Because your break-points will actually freeze IIS for the entire server. It could be a pretty big inconvenience for everyone who is using IIS at the time.