Then I remoted into the SharePoint server and mapped a drive to connect to the share on my client machine.
Open the mapped drive on the server and navigate down the folders to x86\msvsmon.exe and run it on the server through the share.
Once the remote debug monitor is running. Click on tools -> permissions to give the account your logged in as permissions to debug.
You will also need to deploy the PDB file generated by visual studio when it creates your assembly to the GAC as well on the server. You will need to copy via the command line utility or map a drive to it since it is not available through the folder structure in windows. the folder you have to copy the PDB file to is c:\windows\assembly\gac_msil\
In visual studio, select attach to process from the debug menu
In the "Qualifier" text box enter the netbios name of the server that the remote debugging monitor is running. It should refresh the screen and connect to the remote debugging session on the server. You can verify by going to the server and looking at the remote debugging monitor to see who is connected.
I choose to change the types of code I will be attaching to. I used the "select..." button to remove TSQL from the list since it was causing issues and I wasn't debugging SQL anyway.
Select your process and happy debugging.
No comments:
Post a Comment