How to do it...

  1. Log in to your instance using the plugin registration tool and click on Install Profiler. Wait until you get the Profiler Installed Successfully dialog:
  1. Locate your already registered plugin step under Registered Plugins & Custom Workflow Activities. Select it and click on Start Profiling:
  1. Ensure that Exception is selected in step 1. Leave the rest as default:
  1. Back in Dynamics 365, run the action that triggers your plugin from the user interface and click on Download Log File from the exception dialog to download ErrorDetails.txt:
  1. In Visual Studio, click on Attach to Process... from the Debug menu:
  1. From the Attach to Process dialog, select PluginRegistration.exe and click on Attach:
  1. Back in your Plugin Registration tool, click on Debug:
  1. Enter the following details in the Replay Plug-in Execution dialog:
    • Profile: The path to the downloaded ErrorDetails.txt
    • Assembly Location: The path to the Packt.Xrm.Extensions.dll plugin assembly
    • Plugin: The plugin name as Packt.Xrm.Extensions.Plugin.UpdateActivity
  2. Click on Start Execution and Visual Studio will start breaking at the breakpoints.
  3. Once completed, don't forget to select your plugin step and click on Stop Profiling:
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.144.69