65.9K
CodeProject is changing. Read more.
Home

Remote debugging for Visual Studio from different domains

starIconstarIconstarIconstarIconstarIcon

5.00/5 (3 votes)

Jul 10, 2013

CPOL

1 min read

viewsIcon

34524

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. Start Visual Studio remote debugging monitor on the production PC.
  7. 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).
  8. Specific the .pdb file for debugging in Visual Studio.

You can start your debugging!