Script to Help with SharePoint 2013 Workflow Debugging

I explain debugging workflows in SharePoint 2013 using Fiddler and recommend recycling SharePoint services after closing Fiddler to avoid issues.

A few weeks back I blogged how to set up your SharePoint 2013 box to debug workflows and then showed how using that technique it really helped with an issue I was having. One aspect of doing this workflow is you have to fire up Fiddler, then recycle the workflow & SharePoint services so when they come back up, traffic goes through Fiddler. The trick is when you close Fiddler, you need should recycle those services so they aren’t stuck passing through some non existent process (Fiddler).

This kept screwing me up so I wrote a little script that does the following:

  • Fire off Fiddler
  • Restart workflow & SharePoint services
  • Wait until Fiddler gets shut down
  • When Fiddler closes…
  • Restart the workflow & SharePoint services

I added this new script DoWorkflowDebugging.ps1 to the Critical Path Training’s SharePoint 2013 Script Library. This is located in the Critical Path Training Members section of our site, specifically in the Code Samples section. A sign in is required, but it’s free to set one up.

Andrew Connell
Developer & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a web & cloud developer with a focus on Microsoft Azure & Microsoft 365. He’s received Microsoft’s MVP award every year since 2005 and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s the founder of Voitanos and is dedicated to helping you be the best Microsoft 365 web & cloud developer. He lives with his wife & two kids in Florida.

Share & Comment