Visual Studio Developer Center > Visual Studio Forums > Visual Studio Debugger > Which files are necessary to remote debug a .NET program?
Ask a questionAsk a question
 

AnswerWhich files are necessary to remote debug a .NET program?

  • Thursday, October 29, 2009 2:59 AMpadora Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I deployed a .NET program(32 bit) on a "clean" Windows XP with only .NET Framework installed. Now I want to remote debug it using VS2008 on another machine. Before that I need to copy some necessary files to the remote machine that located under C:\WINDOWS\WinSxS. But what exactly these files are? I don't want to copy all the things in the directory to mess up the remote machine. Thanks.

Answers

  • Thursday, October 29, 2009 11:49 AMRoahn LuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello padora,

    If we own these two machines, I think the files we need to copy are about the msvsmon.exe (usually, the whole folder) which is under <Drive>:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86 directory by default (in Windows XP). Another file we may consider to copy is the symbol files which are located under the project directory.

    We copy the msvsmon.exe folder to the remote machine to make sure both the remote machine and the local machine run the same version monitor process, while we copy the symbol files to get rich debug information.

    Best regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback, please tell us.
    Welcome to the All-In-One Code Framework!

All Replies

  • Thursday, October 29, 2009 11:49 AMRoahn LuoMSFT, ModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    Hello padora,

    If we own these two machines, I think the files we need to copy are about the msvsmon.exe (usually, the whole folder) which is under <Drive>:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\Remote Debugger\x86 directory by default (in Windows XP). Another file we may consider to copy is the symbol files which are located under the project directory.

    We copy the msvsmon.exe folder to the remote machine to make sure both the remote machine and the local machine run the same version monitor process, while we copy the symbol files to get rich debug information.

    Best regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback, please tell us.
    Welcome to the All-In-One Code Framework!