The Plugin Registration Tool has some important features to enable the effective troubleshooting of workflow plugins (and plugins in general). The following posts contain useful walkthroughs of these debugging features:
Debugging standard plugins:
Debugging workflow plugins:
But sometimes I find that adding good old-fashioned trace statements to the plugin code can also come in very handy.
The following illustrates this form of debugging for workflow plugins:
- Add the ITracingService reference
- Output trace information at various points
- Throw an exception to force the trace information to be output
The plugin will fail as you have forced an error by throwing an exception. And you can now go into the failed workflow and view the trace information that was outputted.
No comments:
Post a Comment