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