Debugging SharePoint's custom timer jobs from visual studio
I guess this topic is there in many sites. but still want to update in my blog.
when you want to debug a custom sharepoint timer job from visual studio 2008 or above, follow below steps:
1. After you deploy your timer job, you need to restart SharePoint timer service that will be available in list of windows services on your server machine.
2. Now go to debug and attach to process and select OWSTIMER process. If you are not finding it, click refresh button multiple times and check. After attaching,
3. Keep a break point in execute method.
4. go to central admin-->monitoring and find your deployed timer job and Run It using "run now" button
that's all, if you did all correct, you will see the execution will take you to the break point that you placed in your execute method.
happy codding :)
I guess this topic is there in many sites. but still want to update in my blog.
when you want to debug a custom sharepoint timer job from visual studio 2008 or above, follow below steps:
1. After you deploy your timer job, you need to restart SharePoint timer service that will be available in list of windows services on your server machine.
2. Now go to debug and attach to process and select OWSTIMER process. If you are not finding it, click refresh button multiple times and check. After attaching,
3. Keep a break point in execute method.
4. go to central admin-->monitoring and find your deployed timer job and Run It using "run now" button
that's all, if you did all correct, you will see the execution will take you to the break point that you placed in your execute method.
happy codding :)
No comments:
Post a Comment