
Now the Remote Debugging Monitor has started to waiting for new debugging connections. Make sure that the user you are using to run the monitor with is member of the local Administrators group.

You can either log in to the remote host using that user or, as I prefer, right-click on the msvsmon.exe and choose Run As. The Remote Debugging Monitor is the one accepting your debug calls and the talking back to Visual Studio on your client, so to get these things to work you have to start the client as the user running Visual Studio (or have administrative permissions on the client). Copy that folder to your remote host and place a shortcut to the msvsmon.exe on the desktop, so you have fast access to it whenever you need to debug. This guide uses Microsoft Visual Studio 2008 and Windows Vista with UAC on the client and a Windows Server 2003 with WSS 3.0 running in a Virtual PC on the client.įirst of all you need to prepare your remote host for accepting incoming debugging requests, this is done by running the Visual Studio Remote Debugging Monitor on the remote machine, which is found under C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\. But, Remote Debugging has been quite problematic to set up and configure, so here is a guide that you can follow to get it work in a few minutes. It allows you to have a smaller virtual machine, and it will allow you to develop in your main OS. So, Remote Debugging, is my primary way when working with SharePoint development. None of these work that well either you have problems debugging your components and you have to rely on traces or message boxes or you have to have a virtual machine with a full development environment, which will not resemble a production machine. Microsoft SharePoint can't be installed on a Windows Vista or XP workstation, but needs to be installed on Windows Server 2003 or 2008, so the general recommendations has been for developers to have either Windows Server as their main OS or have a virtual machine with Windows Server.

It allows you to develop and debug locally but have the code running on another machine, virtual or physical. Remote Debugging is a great feature to use, especially when you work with virtual machines.
