Debugging the SharePoint Timer job was really a tough job for me, i searched on the web and found so many solutions but they did not work at my system (i dont know why). Finally i did a trick to debugg the timer service, i added the following line of code in the timer service job where you want to have a break point:

1

after compiling the solution and restarting my timer service it came with the following popup options :

2

  • Abort– means you want to stop timer service instance
  • Retry- means you want to debugg the code
  • ignore- means ignore this message and continue the execution of the code

for debugging i selected retry and it opened another screen

3

selected new instance of CLR debugger, it showed the following screen

4

after pressing F10 two times it did enable debugging like this

5

here i did normal debugging by pressing F10 and F11 keys

6

you can also use breakpoints here

7

hope this helps

if you think this is helpfull , dont forget to leave a comment.