I’ve been following this guide to debug a Windows Service application.
Basically, I need to attach the Visual Studio debugger to the process started after installing the Windows Service that has been developed. However, VS doesn’t allow me attach the debugger to this process as shown in the following picture:

How can I attach the debugger to this process? If I clicked on any of the other processes the Attach button becomes enabled.
Any help would be greatly appreciated
check the checkbox
Show processes from all users, then you will seeAutomatedReports.exe. Attach that (notAutomatedReports.vshost.exe)vshostis a host process to help with the debugging. More info on this MSDN LinkAlso you need to place the following line in your service code where you want to hit the break point.