Wednesday, August 23, 2023

Debugging On-Premise Plugins – Dynamics 365 CE

 Step-by-Step Guide to Debugging On-Premise Plugins – Dynamics 365 CE 

 

To Learn more about Plugin Development: Follow:  



Step 1: Configure Debugging Environment 


  • Develop and Register Plugin – Deploy your plugin to Dynamics Environment.  

  • Visual Studio Setup: Ensure Visual Studio is set up for plugin development. 

 

Step 2: Attach Debugger 


  • Launch Dynamics 365: Access your on-premise Dynamics 365 CE environment through your preferred browser. 

  • Attach Debugger: In Visual Studio, navigate to Debug > Attach to Process and select the w3wp.exe processor. 

 

Step 3: Set Breakpoints 


  • Identify Breakpoints: Locate the areas of your on-premise plugin code where you suspect issues might arise. 

  • Set Breakpoints: Set breakpoints at these locations to halt execution and investigate variables and values. 

 

Step 4: Initiate Debugging 


  • Copy Assembly: If Plugin registered in Database, copy the complied Plugin Assembly symbol file (.dll and .pdb) into CRM server’s <crm-root/server/bin/assembly> location and restart IIS.  

  • Trigger Event: Within Dynamics 365 CE, navigate to the record or entity that triggers your on-premise plugin. 

  • Execute Action: Perform the action that activates your on-premise plugin (e.g., create, update, or delete). 

No comments:

Post a Comment