web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Blogs / HIMBAP / 5 Quick Steps to debug your...

5 Quick Steps to debug your CRM Online Plugin

Mahendar Pal Profile Picture Mahendar Pal 45,095

In this article we going to provide you quick 5 steps that you can use to debug your CRM online plugin. Let say we are working with CRM online plugin and getting some error in our plugin, now we want to troubleshoot our plug-in by debugging it.
Before jumping into steps, here is what we are assuming:

  • You are connected to your CRM Online organization.
  • You have experience in plugin development.
  • You have downloaded latest CRM SDK and connected to plugin registration tool (you can find this tool under SDK\Tools\ location).
  • You have already registered plugin and getting error in your plugin which you want to debug.
  • Your plugin code is open in visual studio.

Now let’s use following steps to debug our plugin:

one Install Profiler to your CRM organization using Install Profiler button under plugin registration tool.
profiler
Make sure you are getting installation completion prompt.
two Select your plugin step and click on Start Profiling button, you don’t need to do any changes on profiler setting dialog so simply click on Ok.
startprofilingthree Execute your plugin event, for example we have plugin on account create so when will try to create account we will get business process error like following. Download the error file and store it under SDK\Tools\PluginRegistration location. Also copy your plugin dll and pdb file to same location.
pluginerror
four Go to visual studio and attach to PluginRegistration.exe process using Attach to Process option under Debug menu.
attachprocessfive Finally navigate to plugin registration tool, click on Debug and select location of the error file and your plugin assembly.
debugAs soon as we will click on Start Execution button, it should take us to breakpoint in visual studio like following:
pluginsource

HIMBAP | Need any help in Microsoft CRM Contact US


This was originally posted here.

Comments

*This post is locked for comments