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.

By Last Updated: August 22, 2012 1 minute read

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