I tried the following steps in order to debug a particular custom timer ( installed and activated):
.dll
and .pdb
files in the GAC.w3wp
and OWSTimer.exe
processes.But the debugging is still not taking place. The debugger placed is empty circle which displays this message:
The breakpoint will not currently be hit. No symbols have been loaded for this document.
The OWSTimer is shown in a diff username. Does It needs to be run from my account?
Why debugging is not working?
Debugging Timer Jobs can be hard... The steps you took sound about right, but you can also do some more:
iisreset
;-)If your breakpoints are still not hit, do something ugly: use Debugger.Launch()
or Debugger.Break()
in your code or an assertion which will always fails: System.Diagnostics.Trace.Assert(false);
And then there is MSDN for the rescue.