How to debug a Custom Timer Job in Visual Studio?
Set Breakpoints in your code especially the Execute() method. Click on "Attach to Process..." from the menu bar as shown below:
Check the box at the bottom "Show Processes from All Users".
Select OWSTIMER.EXE
Click the Attach button and a breakpoint should display.