You need to debug a Windows Service application by using breakpoints.
What should you do?
A.
Write all events to an event log.
B.
Set the Windows Service status to Paused.
C.
Implement the Console.WriteLine method throughout the Windows Service.
D.
use the Attach to Process menu in Microsoft Visual Studio.
Explanation:
the answer is D. use the Attach to Process menu in Microsoft Visual Studio
https://msdn.microsoft.com/en-us/library/7a50syb3(v=vs.110).aspx