How to debug a SharePoint timer job with Visual Studio
Timer jobs are an effective solution to handle a situation where a specific process needs to run periodically. The following steps describe how to debug a Microsoft SharePoint 2010 timer job using Visual Studio.
1. Deploy your solution containing your timer job to SharePoint by clicking Build and then Deploy Solution