This chapter showed you some of the ways that you can debug a Windows service. After a short discussion on debugging preparation, it covered attaching to a service process using Visual Studio, debugging a service without installing it, and debugging a service's OnStart method. Finally, you learned how to debug code that runs when your service is installed.