SharePoint 2010 create 自定义 timejob-2

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:

SharePoint 2010 create 自定义 timejob-2

Check the box at the bottom "Show Processes from All Users".

Select OWSTIMER.EXE

Click the Attach button and a breakpoint should display.


你可能感兴趣的:(SharePoint)