Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Debugging a plugin

Posted on by 826

hi Everyone, 

 1>    Is there any other method to debug a plugin , other than  using plugin profiler to log the error file and attaching the VS process to PluginRegistration.exe?

2> how to debug a plugin with message="Retrieve"?  

*This post is locked for comments

  • Suggested answer
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Debugging a plugin

    The only other method (for CRM online) is to start using tracing:

    community.dynamics.com/.../implementing-tracing-in-your-crm-plug-ins

    You can always just throw an InvalidPluginExecutionException if you need something "quick and dirty"..

    #2 seems to be a problem:

    social.microsoft.com/.../plugin-profiler-and-retrieveretrievemultiple-messages

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: Debugging a plugin

    Hi

    Using profiler is good.

    As mentioned below by Alex, you can use new Tracing feature.

    You can use throw invalidpluginexecutionexception.

    You can also separate your business logic into another file.

    Invoke the methods in the business logic using test methods or a test harness console application (of course you have to simulate the context data)

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans