A blog about SharePoint, Project Server and other Microsoft technologies.

Friday, January 25, 2013

SharePoint & Project Server Remote debugging

In the
following text, „Production“ is server environment on which solution is
deployed and which you need to debug for errors. „Test“ is server environment on which your
code is located and Visual Studio is installed.

User on „Test“
and user on „Production“ must have same username, they do not have to be in the
same domain, but, they must have same username / logon name.

2 comments:

1) TEST environment should NOT have ANY development tools (Visual Studio, etc)... TEST is for testing and validating CONFIGURATION CHANGES ONLY. Use of the VS remote debugger is acceptable.

2) a DEV environment is where ALL development (visual studio, etc) should occur.

3) Use of remote debugging on a PROD environment means that LIVE REQUESTS MAY GET BLOCKED. When stepping through code in w3wp, NO OTHER IIS REQUESTS WILL BE PROCESSED. To produce such an impact on a PROD environment is irresponsible.

4) learn to use the SharePoint logging service. (NOT logging to the system event viewer).

The point of this post is to explain how to setup remote debugging between two servers. Names "Production" and "Test" are used just as an example. But, if you need to, you can install VS on test machine, and you can (and sometimes you must) debug production machine