in .Net, C#, CRM, Dynamics CRM, Visual Studio

Steps to run a plug-in for the Dynamics CRM in debug mode

Here are the steps to run a plug-in in debug mode
1) In Visual Studio (BIDS), build the project
2) Copy the generated DLL file and the PDB file (they are located in the project folder, under bin\Debug) to the CRM assembly folder : C:\Program Files\Microsoft Dynamics CRM\Server\bin\assembly
3) Deploy or redeploy the plug-in using the Plug-in registration tool

4) In Visual Studio, attach the w3wp.exe processus (Menu Debug > Attach to process …)
w3wp
5) Put some breakpoints in the program and run the CRM
Breakpoints