How can I debug Windows Emergency Service?

I have a .NET Windows service that seems to be crashing due to C00000005 (Access Violation - according to Dr. Watson). When I attach the VS debugger to it - whether I'm building it with or without symbols - the VS debugger just stops when the service crashes, instead of stopping to give me a chance to do some investigation.

  • Can this be expected or am I doing something wrong?
  • Will I use WinDbg so I can do something else in real time (obviously WinDbg allows me to do crash dump analysis)?

Thanks!

+2


a source to share


1 answer


You have to go to the Exceptions window (Debug -> Exceptions) and check the Thrown checkbox for this exception in Win32 exceptions. Also, note that you are debugging your own code (see the Attach to Process window attached to the combo box.



0


a source







All Articles