How to Debug a Windows Service?

  • Thread starter Thread starter kinghuangz
  • Start date Start date
K

kinghuangz

I have write a Windows server application with .net,but I don't know how to
debug it,please help me!
 
Hi,

Compile your Windows Service in debug mode. After install it with
installutil and launch it. In Visual Studio, press Ctrl + Alt + P, select
your process and press "Attach" button. Now you can debug it. Put break
point in your code and when your windows service treat this line VS.NET
suspend the service on it.
 

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