I\'m trying to debug a Windows Service using VS2008 on Win7 64-Bit. The problem I\'m having is that none of my breakpoints are being hit, regardless of which build configuration
Are you running Visual Studio as an administrator (incl. launched elevated under UAC)?
Obvious questions first...
If none of these are issues, try inserting the following line in the constructor for your service.
System.Diagnostics.Debugger.Break();
When the service starts up, you should be prompted to choose a debugger. When the debugger opens, it'll pause at the programmatic breakpoint, and you can continue from there. I don't work with Windows 7, but I don't expect this aspect of Visual Studio 2008 has changed much from Windows XP. I use this programmatic method all the time to enter a debug session for my Windows service.
I know this doesn't answer your direct question but we found this approach from Eric De Carufel to be very helpful when developing and testing Window Services.
It is non intrusive and get rid of the tedious 'attach to process' step.
The ability to put it into debug when already deployed as Windows Service is also valuable. For example to see the stack trace instead of the service just dying on you.