Close

BLOGS

How to debug a plugin in Dynamics 365 online using plugin profiler

Download Dynamics 365 SDK.

Below is the Step by Step procedure to debug a plugin in Dynaamics 365/Dynamics CRM online:

  1. Download and extract Dynamics 365 SDK  in any folder
  2. Now navigate to SDK\Tools\PluginRegistration
  3. Here you’ll see pluginRegistration.exe file.Double click on it and create a new connection.by clicking “Create New Connection”.

  1. Click on login. It’ll ask for credentials. Provide your dynamics 365 username and password and click sign in.

 

  1. Now it’ll display the available instances of your organization.Select the one in which your plugin exist you want to debug.It’ll display the list of existing assembly deployed in that instance.
  2. Click on install profiler button on top ribbon of Plugin Registration tool.

  1. After installation of Profiles it will show the following screen

  1. It will creqate a solution in Dynamics CRM instance as shown in below screen

  1. Now select the step you want to debug in plugin registration tool and click Start Profiling and then click on Next button.


 

  1. As you click OK,the plugin step is updated as below

  1. Now perform the operation on which the above step has been registered. It’ll generate an exception and a log file which you need to download and save.
  2. Now open the plugin solution in Visual studio and Add the breakpoint  in plugin code from where you would like to debug.Now click on debug and then click attach to process.
  3. Below window will pop up where you need to select PluginRegistration.exe and click on attach button as shown in beloww screen

  1. Now click on debug in plugin registration tool as shown below

  1. Now below window will open where you need to select the log file downloaded in step 7 in Profile, specify plugin dll assembly location in Assembly location and select the step in Plugin as shown in below image and click “Start Execution“:

  1. As soon as you click on Start Execution, the debugger stops at the breakpoint inserted in code in step 8 as shown in below screenshot

Print
Posted: Aug 17, 2018,
Comments: 0,
Author: Urish Arora
Rate this article:
5.0

Urish AroraUrish Arora

Other posts by Urish Arora

, Contact author

Please login or register to post comments.

Name:
Email:
Subject:
Message:
x

SEARCH

Categories

Subscribe to our blog

«April 2021»
MonTueWedThuFriSatSun
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789

  • Featured Posts
  • Recent Posts
  • Recent Comments
Dynamics365Authority is a community platform for Professionals and Students to contribute or share their knowledge and skills on Microsoft Dynamics 365 Technologies. Our primary goal is to invite professionals on Dynamics 365 technology across the world to contribute & share their knowledge and skills through their blogs so that we can help other developers.
Stay updated with Dynamics 365 technology. Improve skills and knowledge from our blogs, articles and code snippets. Learn it. Follow professionals and learn from them.
Unified Service Desk Book(Online Edition) 

FOLLOW US

Stay connected with us on our social media channels for latest articles, blogs posts etc.  We will keep updating regularly on our social media platform and web platform.

FACEBOOK

Follow us on Facebook

 

TWITTER

View all our tweets

 

DYNAMICS365AUTH

Join us now

 

BLOGS

View our blogs

 

 

Latest Blog

Posted: Dec 24, 2020

Form Event Programming Using JavaScript in Dynamics 365 - An Overview

In this video you will see the details on 'Form Event Programming using JavaScript in Dynamics 365'. This will also explore the different areas where you can use JavaScript in Dynamics 365. 

Read more
Posted: Dec 24, 2020

Getting Started with PowerApps

This video is a complete package of about the Power Apps. This video starts with the discussion about What is Power Apps and key reasons to use them. The difference between Canvas Apps and Model Driven Apps. In third part you will see a demo on how to create a Canvas App. Similarly in the forth part you will see the demo on how to create a Model Driven App. There is also a topic What is a Common Data Service (CDS) which will be covered in the fifth part and in the last part you will have some useful information about the PowerApps Portal (aka CDS Starter Portal).

Read more
Posted: Dec 23, 2020

Business Rules vs JavaScript Client API Dynamics 365

This video is about the difference between the Business Rules and JavaScript Client API in Dynamics 365 and some limitation of Business Rules over JavaScript Client API.

Read more
RSS

ADDITIONAL RESOURCES

Dynamics 365 Authority.com - Search the library for "Dynamics 365"

  What's New in Dynamics 365

  Dynamics 365 Documentation

  

  Sign-up for 30 days trial

 

 

Recent comments

Ashish:

Nice blog. Very helpful to get all references to white papers at one place.

Previous Next

About Us

Here comes the Dynamics 365 Authority - Great technical blog posts are hidden gems. They are hard to find simply because not enough of us write them in the first place. Yet technical blogging is one of the best things we can do not only for ourselves, but also as members of the wider community of developers.

Dynamics 365 Authority leverages this platform to help developers and users to move from traditional paper-based process to modern digital business process. Dynamics365Authority.com helps your business grow, evolve and transform.

Dynamics365Authority.com is your Digital Transformation Partner

Recent Posts

Form Event Programming Using JavaScript in Dynamics 365 - An Overview

In this video you will see the details on 'Form Event Programming using JavaScript in Dynamics 365'. This will also explore the different areas where you can use JavaScript in Dynamics...
  • 861
  • Article rating: 5.0

Getting Started with PowerApps

This video is a complete package of about the Power Apps. This video starts with the discussion about What is Power Apps and key reasons to use them. The difference between Canvas Apps and Model...
  • 604
  • Article rating: 5.0
RSS

Get in touch

Follow Us

 

Tag cloud: Dynamics365Authority.com; Dynamics365Authority.com; Sales; Leading community site on MS Dynamics 365; Dynamics 365 Authority; Service;Top CRM Blogs;  Digital Transformation; Field Service;Top Articles on MS Dynamics CRM Relationship Insights; Office 365 Security Compliance; Project Service; Microsoft Dynamics 365 for Sales; Relevance Search; Goal Metrics; Activities and Case; Sales Literature;Knowledge Management;

Terms Of UsePrivacy StatementCopyright 2021 by Dynamics365Authority
Back To Top