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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to debug crm online plugin?

(0) ShareShare
ReportReport
Posted on by

I have dynamic crm online setup where I have a workflow attached with a plugin. It works when new account is created. But I am not getting appropriate result, so I need to debug the plugin code. I have open the code in vs2015 and Plugin Registration Tool. I don't want to use Profile to debug it because I can't see Profile Start button when installed the profile. Has any alternative way to debug my plugin's code?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    For CRM Online, you need to use Plugin Profiler to debug the plugin. I would suggest to uninstall and install the Profiler again and see if it works. You can refer below-

    dynamics365blocks.wordpress.com/.../how-to-debug-a-plugin-in-dynamics-365-online-using-plugin-profiler

    Hope this helps.

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    I found this video as well in case you prefer this over a blog :)

    www.youtube.com/watch

    Hope this helps.

  • gdas Profile Picture
    50,091 Moderator on at

    Hi Shahriat,

    Try to reconnect plugin registration tool after profiler got installed , you should see the start profiling button. In addition you can try to download latest SDK and open plugin registration tool from there .

    dynamics365blocks.wordpress.com/.../how-to-debug-a-plugin-in-dynamics-365-online-using-plugin-profiler

    arunpotti.wordpress.com/.../how-to-debug-plug-ins-in-crm

  • Community Member Profile Picture
    on at

    I can see debugging using profiler needs to have exception or log file but I don't have any error. I only just want to debug the code while account create event occurred. What should be the workaround on it?

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Hi,

    This is not the correct understanding. When you start profiling, the profiler will automatically give you the error log file which you need to upload while debugging. Please follow the shared blog/ video.

    It is straight forward and once you are able to make it work, you will love it :).

    Hope this helps.

  • Suggested answer
    Pawar Pravin  Profile Picture
    5,237 on at

    Hi Shahriat Hossain,

    Please do use tracing service inside your coding. It could be helpful for you.

    Refer following url's

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

    www.powerobjects.com/.../debugging-your-plug-ins-with-the-plug-in-trace-log

  • Community Member Profile Picture
    on at

    dynamisity.wordpress.com/.../step-by-step-debug-plugin-in-dynamics-crm

    Refer this link for the same.

  • Community Member Profile Picture
    on at

    I have installed Profiler now now I need to select step to start the profiler but I can't see any step in my assembly plugin instead I can see a Workflow Activity when I select this activity I can't see start profiler tab on top of the registration tool. What should I do now?

  • RaviKashyap Profile Picture
    55,410 Moderator on at

    Do you want to debug workflow activity or plugin?

  • Verified answer
    Prashant_ Profile Picture
    1,040 on at

    Hi Shahriat Hossain,

    Start Profiling option is available for plugin step not for assembly  or plugin .If there is step not visible then you have to register new step to plugin on message like create,update etc.If you want to debug custom activity(workflow) then you need to perform different steps. use following blog that will help you for workflow debugging.

    ssharmacrm.wordpress.com/.../how-to-debug-a-custom-workflow-activity-in-dynamics-crm

    dreamingincrm.com/.../debugging-custom-workflow-assemblies

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans