I have created windows service i have try to debug for that i use Under debug Tab click on attach to process select Myservice.exe it wont go through the break point.
In service on start event i was write following code
protected override void OnStart(string[] args)
{
Console.WriteLine("Press Enter to terminate ...");
}
Please help me how resolve this issue….
Use following method.On your code. This is by far the easiest method to set a breakpoint on service library.
Debugger.Break();