How to Write, Register and Debug a Plugin in Dynamics 365 Part 3/3: How to debug a plugin

| Syed Junaid

After successfully completing the registration process of the plugin, If there are some errors then we need to debug a plugin to see what is causing the error.

To debug the plugin we have to follow the following steps:

  1. Go to the environment where the plugin is registered and install the plugin profiler.
    Power Apps Maker portal
  2. After the installation, select the plugin step you want to debug and click on start profiling and in the dialog select ok. This will start saving the profile.
    Power Apps Maker portal
  3. Perform the step on which you have registered your plugin so that we can save that profile. In my case, creating the contact.
  4. Go to your visual studio plugin project and attach the debugger to the Plugin Registration Tool and put a breakpoint on a line from which you want to start your debugger.
    Power Apps Maker portal

    Power Apps Maker portal

    Power Apps Maker portal
  5. Go to your plugin registration tool, select debug. After that select the profile on which you want to debug.
    Power Apps Maker portal

    Power Apps Maker portal

    Power Apps Maker portal
  6. Then select the assembly of your plugin (.dll)
    Power Apps Maker portal

    Power Apps Maker portal
  7. Click on start execution.
    Power Apps Maker portal

It will start the debugging process on the selected profile. You can go to Visual Studio and debug the whole code in order to see what is causing the error.

    Click here to learn more about Imperium's Dynamics Services.


M
Chief Architect, Founder, and CEO - a Microsoft recognized Power Platform solution architect.

About The Blog

Stay updated with what is happening in the Microsoft Business Applications world and initiatives Imperium is taking to ease digital transformation for customers.


More About Us

We provide guidance and strategic oversight to C-Suite and IT Directors for on-going implementations. Feel free to give us a call.

1 331 250 27 17
Send A Message

Ready to Start?

Get a personalized consultation for your project.

Book a Meeting