Jan16

How to configure vs remote debugging for SharePoint 2010

Author // Rogério Cruzeiro Categories // How To

  1. First download the x64 bits version of the Microsoft Visual Studio 2010 Remote Debugger from Microsoft website

  2. Install it on the server and run it as Administrator

  3. Make sure the WSP package / DLL in the GAC is up to date

  4. Copy the .pdb file from your build directory to the GAC folder
    Tip #1: use command line copy command
    Tip #2: map the windows assembly folder to a network drive to easily explore the inner folders

  5. Make sure you have and account with the same name in both machines

  6. Back to Visual Studio paste the server name in the qualifier text box (something like DOMAIN\username@SERVERNAME), hit Enter and the process list should popup from the server

  7. Attach to the appropriate IIS process (w3wp.exe) or SharePoint Timer Job process (OWSTIMER.EXE) 

  8. Wait while symbol are loading and after that you should able to debug the solution and hit breaking points.

About the Author

Rogério Cruzeiro

Being a qualified .NET and SharePoint Consultant, I have over 5 years of experience in Software Development, with special focus on collaboration and content management platforms, solution integration and business intelligence.

I'm particularly pleased to work with Microsoft technologies, especially with the SharePoint platform, ASP.NET, C# and PowerShell, and I'm always searching for new programming methods and for new ways of doing things more efficiently.

My strengths include:

  • SharePoint Development
  • .Net & Web Development
  • PowerShell Scripting
  • SharePoint Migrations
  • SharePoint 2010 Administration
  • SharePoint 2010 Configuration