Outlook Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Friday, 15 July 2011

Visual Studio: Remote Debugging

Posted on 06:57 by Unknown

Given the task of remotely debugging UAT code from my workstation, I read so many articles around steps to get it working. Though all of them contributed in getting it working, there was not a single silver bullet post which nailed the solution for me. The approach that worked for me was a concoction of tips and tricks from multiple posts. Let me chart out the steps I treaded to get there, hoping that for some it works as a one stop shop. Please note my IDE is VS 2005 Team Edition.


1) For remote debugging, a remote debugging monitor service msvsmon should be running on the remote machine. For 64bit processes, the service executable is available at <install path>\Microsoft Visual Studio 8\Common7\IDE\Remote Debugger\x64.
2) Double click the executable on the remote machine which opens a window with a timestamp and a message “Msvsmon started a new server named <login name>@<remote machine name>. Waiting for new connections.” i.e. the service has been started. Please note that the <login name> would be the user with which you have logged onto the machine and maybe qualified with the name of the domain on which you are currently logged onto.
3) Build the solution on the host machine and place the assemblies along-with the .pdb files onto the remote machine file system. GAC these assemblies from the remote file system into the remote assembly cache.
4) Restart the appropriate service/ process so that it starts picking up our newly gaced assemblies. In my case it was the BizTalk service which I had to bounce.
5) On the host machine IDE menu, open Debug --> Attach to Process. Set Transport as “Default” and Qualifier as <login name>@<remote machine name> i.e. details shown in the msvsmon window. Please do not omit the domain name. You can simply copy paste the <login name> from the msvsmon window.
Hit [Refresh] to see processes hosted on the remote machine and attach to the required process.
6) In Step (5) if you get an error like,
         Unable to connect to the Microsoft Visual Studio Remote Debugging Monitor named <login name>@<remote  
         machine name>'.  A security package specific error occurred.
Check whether,
         The <login name> is an admin on the remote machine or added as a remote user on the remote machine.


 If yes then use the following work-around:
a) On the remote machine create a user “RemoteDebug” (any name would do) and add the user as a local administrator
b) On the host machine, also  create a user “RemoteDebug” and add the user as a local administrator
c) On the remote machine run msvsmon service under RemoteDebug user by doing a “run as”
d) On the host machine IDE open Debug à Attach to Process. With Transport set as “Default” set Qualifier as RemoteDebug@<remote machine name>. Hit [Refresh] which will display all the processes hosted on the remote machine
e) Go back to the remote machine and exit the msvsmon service. Start the service again, but this time simply double click the executable and not do a run as. This will run the service under your login name.
f) Go to the host machine IDE and open Debug à Attach to Process. With Transport set as “Default” set Qualifier as <login name>@<remote machine name>. Hit [Refresh] and this should now display all the processes hosted on the remote machine.
Please note that if you try to debug by attaching the process in step (d), the debugging will not work as the IDE is run under your login name and not under RemoteDebug


Do not hesitate to drop me an e-mail with any particular observations you have had whilst trying to setup a remote debug environment. Enjoy!
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Microsoft Outlook Duplicate Email Fix
    When using Microsoft Outlook, you may encounter an error in which all of your emails are downloaded twice. Depending on the size of your inb...
  • Quality Agile Metrics
    I was asked recently what metrics I would collect to assess how well an agile team is improving. I paused for a moment to scan through 12 ye...
  • Repair MSN Premium
    MSN Premium, an Internet service by Microsoft, lets you access the Internet, download files and transmit emails as well as chat with others...
  • Enable ActiveX Control in Outlook
    Occasionally when using Microsoft Outlook, you may receive an error message telling you that your security settings do not allow ActiveX con...
  • Outlook Macro: Move read messages from inbox to folders
    Being handed over a blackberry from my employer recently to monitor support e-mails, what I found out was that any e-mails that were picked ...
  • The Paradoxes of Software Development
    When you've been working in Software Development for a while, you eventually wise up to the three important factors that drive any proje...
  • Now with minty-fresh visitor counter
    Someone suggested to me this past weekend that I add a visitor counter to this blog. It's one of the most common suggestions made to me...
  • Team Leads need to be Potion Masters
    Okay, maybe it's because I just read the latest Harry Potter book, but in discussing Test Team leadership recently with someone, I used ...
  • Delete Error Messages in Outlook Express
    The "Server Error: 421" error message appears in Outlook Express when you are on a server that is utilizing a POP3 connection and ...
  • Some incomplete thoughts...
    There are a series of related ideas that I want to discuss, but I don't think I'll have the time to properly describe them here. I...

Categories

  • agile
  • agile testing
  • AYE
  • bad training
  • bugs
  • building software
  • certification
  • communication
  • conference
  • configure outlook express
  • configure windows live hotmail account in windows live mail
  • configure windows live mail
  • context-driven
  • development
  • engineering
  • error message
  • ET
  • exploratory testing
  • future
  • hiring
  • hobbies
  • hotmail account validation process
  • How to Enable ActiveX Control in Outlook
  • how to fix duplicate email
  • how to solve error 4.01 or greater
  • incoming mail sync to outlook
  • information radiator
  • instruction for pst file
  • interests
  • lean
  • lean software development
  • learning
  • low tech testing dashboard
  • management
  • mastery
  • measuring progress
  • metrics
  • Microsoft Outlook Duplicate Email Fix
  • Microsoft Technical Support
  • Microsoft Windows Mail
  • ms outlook duplicate email
  • msn account reset
  • msn account validation process
  • msn error code 0x80004005
  • msn error code 0x80004005 in apple mac
  • msn error code 0x80004005 windows 8
  • MSN Error Support Msn Help and Support
  • MSN Password Recovery
  • msn password reset
  • MSN Technical Support
  • outgoing mail not sent from outlook express
  • outlook not authenticate password
  • passion
  • people
  • pop3 email server
  • programming
  • quality
  • Quality Center
  • questions
  • regression testing
  • remove error 0X800ccc90
  • remove Error 0X800ccc90/Error 0x800ccc18
  • remove error 421
  • remove error ox800ccc90
  • remove msn error code 0x80004005 in windows 7
  • remove windows live mail
  • repair microsoft outlook pst file
  • repair PST file
  • resolve sound distortion problem with your live messenger
  • reviewing resumes
  • Satir
  • SBTM
  • science
  • skills
  • software
  • software testers
  • Software testing
  • sound distortion msn
  • sound distortion with livemail
  • support for microsoft outlook
  • support for outlook
  • TDD
  • technical support for microsoft outlook
  • testing
  • testing dashboard
  • time
  • Unable To Login in Windows Mail
  • unable to loging in waindows mail
  • value
  • Waterfall
  • windows live mail error Ox800CCCD2
  • windows live mail support
  • writing

Blog Archive

  • ►  2013 (16)
    • ►  September (10)
    • ►  August (1)
    • ►  April (1)
    • ►  February (2)
    • ►  January (2)
  • ►  2012 (3)
    • ►  May (1)
    • ►  February (1)
    • ►  January (1)
  • ▼  2011 (25)
    • ►  December (1)
    • ►  October (1)
    • ►  September (2)
    • ►  August (3)
    • ▼  July (2)
      • Quality Center Must Die
      • Visual Studio: Remote Debugging
    • ►  May (1)
    • ►  April (2)
    • ►  March (9)
    • ►  February (2)
    • ►  January (2)
  • ►  2010 (13)
    • ►  November (1)
    • ►  September (3)
    • ►  July (1)
    • ►  May (1)
    • ►  April (1)
    • ►  February (4)
    • ►  January (2)
  • ►  2009 (10)
    • ►  December (1)
    • ►  November (2)
    • ►  October (2)
    • ►  July (3)
    • ►  May (1)
    • ►  February (1)
  • ►  2008 (4)
    • ►  October (1)
    • ►  April (1)
    • ►  March (2)
  • ►  2007 (12)
    • ►  November (1)
    • ►  August (2)
    • ►  July (1)
    • ►  May (3)
    • ►  February (2)
    • ►  January (3)
  • ►  2006 (1)
    • ►  August (1)
  • ►  2005 (16)
    • ►  November (2)
    • ►  October (1)
    • ►  September (2)
    • ►  August (1)
    • ►  May (4)
    • ►  April (4)
    • ►  February (1)
    • ►  January (1)
  • ►  2004 (2)
    • ►  December (2)
Powered by Blogger.

About Me

Unknown
View my complete profile