Wednesday, 25 January 2012

SharePoint 2010 - Debug Timer Job

In order to debug a timer job or a code section within a workflow that occurs after a delay you need to attach the visual studio debugger to the OWSTIMER.exe process.

This can be done using the following steps:


Click On Debug then Attach To Process



Within the Attach to Process window ensure the Show process from all users checkbox is selected.  Find The OWSTIMER.exe process within the available processes then click Attach.

Attach to Process

After these steps you should now be able to debug your timer job code.

No comments:

Post a Comment