Monday 2 June 2008

Debugging Custom Timer Job


[TR]
Sharepoin 2007 için yazdığım bir timerjob bi türlü çalışmayınca debug etme ihtiyacı duydum. Ama bu timerjob'ın Installer kısmını debug edebiliyorken Definition kısmını bir türlü debug edemediğimi farkettim. biraz araştırma sonunda şöyle bişeyler buldum
  • Kodunuzun herhangi bir yerine breakpoint koyun
  • Toolbar'dan Debug'a tıklayıp "Attach to process" 'i seçin
  • Önünüze gelen panelden "OWSTimer.exe"'yi seçin
  • Artık kodunuzu debug edebilirsiniz

[ENG]
I needed debug a timerjob that I wrote for Sharepoint 2007. But I realised that I can debug Installer code but I cannot debug Definition code file. After a little research I found a solution;

  • Put a breakpoint to any line of your code
  • Click Debug from Toolbar and then select "Attach to Process"
  • From that list select "OWSTimer.exe"
  • Now you can debug your code

No comments: