Monday, January 28, 2008

MSCRM 4.0 Plug-in: Quick Start Guide Part 2 (Debugging)

How to debug plug-in with Visual Studio 2005:

1. Compile the assembly, copy following files to the MSCRM server assembly folder
(e.g. C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly):

     *.dll
     *.pdb

2. When registering the plug-in, make sure Disk is selected as the Location for the assembly.


3. Back to Visual Studio. Under Debug menu, select Attach Process… And attach to the relevant process which will trigger the debugger:


4. Back to Visual Studio and set break points:


5. Back to MSCRM, and perform an action which will trigger the debugger (based on the message registered for the entity)

6. The Local window will be able to show some information for debugging:


No comments: