Thursday, May 31, 2012

Remote Debugging

When trying or having trouble for visual studio remote debugging, following steps would be useful.

1. Create user with name debug on both server and client machines
2. Add debug to administrators group
3. Disable UAC if applicable / needed (You would need machine restart in this case)
4. Login to server machine using debug user and launch any program that needs to be debugged
5. Launch visual studio using debug user (For this you may do shift right click and use run as option)
6. Launch remote debugger software on server. Take value in Server name field of tools -- options in remote debugging monitor
7. From visual studio, goto tools -- attach process -- provide value you taken from server name field in above step into Qualifier text box. select the process you want to debug and click Attach.
8. Keep an eye on Attach To option whether you are trying to debug managed or native code and select appropriate options using Select button.

Hope this steps is useful for any one having trouble doing remote debugging.