How can I debug a Windows service that crashes?

Posted by Christopher on Stack Overflow See other posts from Stack Overflow or by Christopher
Published on 2010-05-08T14:36:18Z Indexed on 2010/05/08 14:38 UTC
Read the original article Hit count: 323

Filed under:
|
|

I have a .NET Windows service that appears to be crashing due to C00000005 (access violation--according to Dr Watson). When I attach the VS debugger to it--whether I build it with or without symbols--the VS debugger just stops when the service crashes, instead of stopping to give me a chance to do any investigation.

  1. Is that to be expected, or am I doing something wrong?
  2. Will using WinDbg let me do something more in real time (obviously, WinDbg lets me do crash dump analysis)?

Thanks!

© Stack Overflow or respective owner

Related posts about windows-service

Related posts about crash