To do this:
1) In Visual Studio, add a break point in the Execute method in the timer job
2) Attach to the OWSTIMER process (Debug –> Attach to process)
3) Open up Central Administration, and find the timer job
4) Edit the timer job and click the “Run Now” button
This should now step into your code.
See http://msdn.microsoft.com/en-us/library/ff798310.aspx for more information
Tagged: Debugging, SharePoint 2010, Timer Jobs
