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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Does the PlugIn Profiler Only Create a Log File on Error?

(0) ShareShare
ReportReport
Posted on by 52

While testing the update of an Entity record, I notice I seem to only get prompted to download a log file during an error, so I wanted to confirm if this is what I should expect?

The expected outcome of my PlugIn is not working as I would expect it when there is no error, so I'm wondering how I can debug the code when no error is thrown - a couple of options that I'm wondering if possible is:

  • It seems you can create a console app to test your PlugIn, however I'm not sure how you can do this manually since you need an IServiceProvider?
  • Should I forcibly throw a InvalidPluginExecutionException later in my code so I can get the log file to debug?

Thanks!

I have the same question (0)
  • Suggested answer
    Summers Profile Picture
    52 on at

    I confirmed the PlugIn Profiler will create a log file irrespective of whether or not an error occured if the PlugIn was triggered. I do suggest after one is generated to stop profiling immediately, and profile again to test another occurence if needed.

  • Suggested answer
    Bipin D365 Profile Picture
    28,985 Moderator on at

    Hi,

    Fakexrmeasy framework can be used to write unite tests for plugin and it can also be used for debugging without having to deploy your changes to CRM

    dynamics-chronicles.com/.../dynamics-365-unit-tests-tutorial-fakexrmeasy-and-more

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 180 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 123

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans