Pages

9 Jan 2014

How to debug SharePoint custom timer jobs in Visual Studio 2010?

1. Deploy your timer job solution

2. Set a break point in your code especially at Execute(). Why means whatever we written in Execute() method, this one only will debug. So set a break point at this method.

3. Attach to a process “OWSTIMER.EXE”.



































4. Go to “Central Administration”  click on “Monitoring” in left side menu Under “Timer jobs” section, click on “Review job definitions”.

5. You can see all timer jobs there, select your timer job and click on it.























6. Click on “Run Now” and go to your code. Now you can able to debug your code.

No comments:

Post a Comment