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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top