Remote debugging from Visual Studio
Copy RemoteDebugger to remote machine from your local Visual Studio directory
(This is path for VS2010)
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\Remote Debugger
Start remote debugging monitor on the server ‘msvsmon.exe’
Go to Tools/Options and select ‘No Authentication (native only)’ and ‘Allow any user to debug’
In your Visual Studio select ‘Debug/Attach to Process’, specify Transport as ‘Remote (Native only with no authentication)’ and put your server name as Qualifier, click Refresh and you should see the list of processes on the remote machine.
Select the process you want to debug and click ‘Attach’