Friday 13 May 2016

Plugin Debugging using Profiler in CRM 2016

Steps for Debugging:


  1. Connect to CRM with SDK plugin registration tool.
  2. Install the profiler by clicking 'Install Profiler'.

   3. A new branch is added to Register Plugin and workflow activities.


4. Select a plug-in step and click Start Profiling in the toolbar to begin profiling. Below screen pop up, click OK.


5. Perform the operation in CRM that causes the plug-in to run.



 6. Click on Download Log File button to save the ErrorDetails.txt file on  computer.

7. Open the plug-in solution in Visual Studio and go to Debug  --> Attach Process and select       
    PluginRegistration.exe, Click Attach button.


8. In Plug-In Registration Tool, click the Debug button. Select ErrorDetails.txt for the profile location and browse assembly location to debug.



10.  Click the Start Execution button, and debugging will start in Visual Studio.




No comments:

Post a Comment