Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

How to Debug a plugin on email?

Posted on by 594

Hi CRM World,

I have registered a plugin on CheckIncoming step for email entity. So whenever we receive an email into CRM my plugin gets triggered.

How do i debug my plugin? Though i turn on profiling for the CheckIncoming step, i cannot capture the log file which i need to load into plugin registration tool for debugging. Is there any alternative option to obtain this file so that i can debug my plugin?

*This post is locked for comments

  • chakkay Profile Picture
    chakkay 594 on at
    RE: How to Debug a plugin on email?

    It did work. Thanks a lot.

    But i am not able to debug the plugin. When i attach the visual studio with plugin registration tool, i have lots of break points in my code. After clicking Start execution button, it should ideally stop at the first debugging point and by pressing F10 we start debugging the code line by line.

    In my case, the moment i click the start execution button, it is completely executing my code without stopping at the debugging point. In such a case, how should i debug the plugin?

  • Verified answer
    Shidin Haridas Profile Picture
    Shidin Haridas 3,497 on at
    RE: How to Debug a plugin on email?

    You do not have to load the file.

    Can you try the following?

    When you profile the plugin, choose 'Persist to Entity'

    Once the email comes in, go to the Plugin Reg Tool, click on the icon below and see if you can find any new plugin profiles added here.

    660674.Capture.PNG

    Choose the latest one and then try to debug as usual.

    Cheers!

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