Attaching to the service should work, so I'm not sure why you cannot. Instead, insert the following line into the entry point of the application for your Windows service (or the OnStart () method), compile in debug mode, and start the service.
System.Diagnostics.Debugger.Break();
. Visual Studio 2008, . F5, .
EDIT:
, ( - ) installutil , . , . , . , , exe/dll (s) . , , . , : , . , , .
debug vs. release, , . , , , , , . .
Visual Studio bin\Debug . , bin\Release. installutil , , . (installutil /u c:\myapp\myapp\bin\release\myapp.exe), , , installutil ( bin\Debug ).
, . , .