Rolog

Blog ( Of Ryan Olshan)

News

About Ryan Olshan

LinkedIn Profile

Follow Ryan via twitter

Join StrongTypes - Free Generics Help By Email
Join StrongTypes

Community Credit Winner

View my MVP profile

The posts on this weblog are provided "as is" with no warranties and confer no rights. The opinions expressed herin are my own personal opinions and do not represent my employer's view in any way.

Subscribe to Rolog via My AOL
Subscribe to Rolog via Bloglines


Subscribe to Rolog via Feedburner

Furl Rolog




Subscribe to Rolog via Newsburst


Subscribe to Rolog via Pluck

Add Rolog to Technorati Favorites




Thycotic Secret Server

Receive Email Updates


Yahoo! Groups

  • => StrongTypes <=
  • AspNet2
  • AspNet20GridView
  • PayPalDevDotNet
  • RubyOnRails
  • VSTS

.NET Websites

  • => StrongTypes.com <=
  • Community Credit
  • DotNetSlackers
  • EasyListBox
  • SystemNetMail.com
  • SystemWebMail.com

Other Websites

  • 911 Pigeon Alert
  • Pacific Wildlife Project
  • My Personal Blog
  • Robblehead Around The World

Blogroll

  • Alex Campbell
  • Chris Taylor
  • Darren Neimke
  • David Betz
  • Eric Smith
  • Rob Caron
  • Rob Howard
  • Sam Gentile
  • Scott Guthrie
  • Scott Mitchell
  • Tess
  • Wesner Moise
  • Jason Alexander
  • Bill Ryan
  • Steve Smith
  • Sahil Malik
  • David Silverlight

Strong Coder Bloggers

  • Dean Fiala
  • Kevin Jones

Debugging SharePoint Timer Jobs

Before I begin, I'd like to point out Andrew Connell's blog entry on creating custom SharePoint timer jobs . It's an excellent starting point.

The process of debugging the timer job is straight forward.

1) Since the assembly for the timer job is deployed to the GAC, you'll need to put a copy of the PDB file in %SYSTEMROOT%\Assembly\gac_msil\\. Once there, Visual Studio will be able to properly load the debug symbols.

2) In Visual Studio, attach to the OWSTIMER.EXE process. OWSTIMER.EXE is the Windows service that runs the timer jobs.

Once attached to OWSTIMER.EXE, any breakpoints you set will be hit when the timer job is run.

UPDATE (10/11/2007 4:10PM PDT): You'll need to restart the Windows SharePoint Services Timer service (OWSTIMER.EXE) each time you make any change that will effect how your code behaves (i.e. deploying a new version to the GAC, changing a config file value, etc.) in order for the change to take effect.

Share this post: | bookmark it! | digg it! | reddit! | kick it! | live it!
Posted: Oct 11 2007, 11:28 AM by Ryan Olshan | with 1 comment(s)
Filed under: , ,

Comments

AC [MVP MOSS] said:

Thanks for the kind words on the post... glad it helped! You'll see more content coming for creating custom timer jobs in the next few months. :)

# October 11, 2007 1:34 PM