Thursday, February 2, 2012

Remote Debugger

In most of the cases we will not be installing our development enviorment in the system why because we dont want to slow down the server by installing software like Visual Studio and in this case we will installing our sever and devlopment environment seprately so we need debug our plugin remotely here is the steps to debug plugin using remote debugger

1) open the visual studion remote debugger folder
2) Copy the folder to server (CRMSERVER) according to wether the system is 32 bit or 64 bit 

3)Open the folder in server and Run the msvsmon.exe file 
 4)Tools Option Configure the permission for the user (user should be same which is running the debugging in remote desk top)
5)Copy the plugin.dll and plugin.pdb file to the " C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly " of crm server 

6)Register the plugin (assembly should be stored in disk mode)

7)Open the plugin solution in Visual studio
8) Go to tools > attach process 
9)  Enter the server name in qualifier field(which is there in the options of msvsmon.exe options )
     press enter it will list all the process running in server

10)Attach the WpW3.exe process

Now open the CRM and Trigger your plugin  

It will start debugging  :)



No comments:

Post a Comment