Click here to Skip to main content
15,860,972 members
Articles / Programming Languages / C#
Tip/Trick

Remote debugging for Visual Studio from different domains

Rate me:
Please Sign up or sign in to vote.
5.00/5 (3 votes)
10 Jul 2013CPOL1 min read 33.3K   20   1
Remote debugging tips.

Introduction 

Nowadays it’s common that the development environment is much faster than the production environment. Sometimes issues only happen in the production environment which drives the need for remote debugging. It’s easy to setup the remote debugging environment if both PCs are in the same domain. But it’s a bit tricky to setup it for PCs under different domains.

Setup  

In our case, the developmet PC is on the company domain but the production PC is on the local workgroup. We can follow these steps to setup the environment:

  1. Refer to http://msdn.microsoft.com/en-us/library/vstudio/bt727f1t%28v=vs.100%29.aspx#bkmk_setuptheremotecomputer to setup the remote debugging components on the production PC.
  2. Turn off the firewall on both PCs.
  3. On the production PC, we need to create the local account with Administrator rights. This account and password must be exactly the same as the login domain account on the developer PC.
  4. On the development PC, we need to create a local account with Administrator rights. This account and password must be exactly the same as the login local account on the production PC.
  5. Start Visual Studio remote debugging configuration wizard. Followed the wizard to configure it:
  6. Image 1

    Image 2

  7. Start Visual Studio remote debugging monitor on the production PC.
  8. Image 3

  9. Launch the Attach process page from Visual Studio on the developer PC. Change the qualifier name to the one specified in the production PC (rndgrp@RNDGRP-PC).
  10. Image 4

  11. Specific the .pdb file for debugging in Visual Studio.
  12. Image 5

    Image 6

    Image 7

You can start your debugging!

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Singapore Singapore
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Questionwithout turn off firewall??? Pin
YDLU29-Aug-13 11:08
YDLU29-Aug-13 11:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.