Click here to Skip to main content
Click here to Skip to main content

Tagged as

Remote debugging for Visual Studio from different domains

, 10 Jul 2013 CPOL
Rate this:
Please Sign up or sign in to vote.
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!

License

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

Share

About the Author

chain1234

Singapore Singapore
No Biography provided

Comments and Discussions

 
Questionwithout turn off firewall??? PinmemberYDLU29-Aug-13 11:08 

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

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

| Advertise | Privacy | Mobile
Web04 | 2.8.141015.1 | Last Updated 10 Jul 2013
Article Copyright 2013 by chain1234
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid