how to debug windows service

  • Thread starter Thread starter =?gb2312?B?ztLDzr2txM+6ww==?=
  • Start date Start date
?

=?gb2312?B?ztLDzr2txM+6ww==?=

how to debug a running service?

I can use "debug processes" to attach a running service,
but the program doesn't break at my break points.
 
Add a call to System.Diagnostics.Debugger.Break() at the point where you'd
like to start debugging.
 
Hi,

how to debug a running service?

"I can use "debug processes" to attach a running service,
but the program doesn't break at my break points."

It should do. Choose Processes in the Debug menu in VS, select your running
service and click attach. Of course, the service has to be compiled in debug
mode if you want it to stop at your break points...
 
Back
Top