September 2011
Intermediate to advanced
1008 pages
24h 27m
English
To force CRM to call the debugger, you must add a line similar to the following in your add-in source code where you want to call the debugger:
System.Diagnostics.Debugger.Launch();
Assuming you registered a plug-in with a step associated to the Account entity on the Create event (as our example did), when you go the CRM web application and try to create a new Account, you will see the dialog shown on Figure 25.37 after you click the Save or Save and Close buttons on the Account form.
Figure 25.37 Visual Studio just-in-time debugger.

Click Yes to open a new instance of Microsoft Visual Studio 2010, and you ...