Debugging SharePoint Designer Workflow Made Possible

How many of us scratching our head while debugging Designer Workflow in SharePoint Environment?.  I bet, there would be many people like me. There wont be logs available to debug it. The only option is to write into Workflow history see them for actual issues.
 
There is a Workaround for this. The solution is simple , you just need to add the below entries in the web.config in the sharePoint site.  
 
 
  1. <system.diagnostics>
  2. <switches>
  3. <add name="System.Workflow LogToFile" value="1" />
  4. <add name="System.Workflow.Runtime" value="All" />
  5. <add name="System.Workflow.Runtime.Hosting" value="All" />
  6. <add name="System.Workflow.Runtime.Tracking" value="All" />
  7. <add name="System.Workflow.Activities" value="All" />
  8. <add name="System.Workflow.Activities.Rules" value="All" />
  9. </switches>
  10. </system.diagnostics>
 Once the entry is added, you can filter it in ULS logs in ULS Log Viewer. Happy SharePointing :-)