---
title: "attach a debugger to a service automatically at startup"
url: "https://osherove.com/blog/2004/9/3/attach-a-debugger-to-a-service-automatically-at-startup.md"
canonical: "https://osherove.com/blog/2004/9/3/attach-a-debugger-to-a-service-automatically-at-startup.html"
published: "2004-09-03T07:59:00"
updated: "2004-09-03T07:59:00"
tags: ["Tips & Tricks"]
author: "Roy Osherove"
description: "Just a small link to remind me later - how to attach a debugger to a service automatically at startup (via Peter Provost )"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# attach a debugger to a service automatically at startup

By Roy Osherove September 3, 2004 In [Tips & Tricks](https://osherove.com/blog/category/tips-tricks)

**Historical article** · Originally published September 3, 2004; technical details may be outdated.

Just a small link to remind me later  -

[how to attach a debugger to a service automatically at startup](http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsdebug/html/vxtskLaunchingDebuggerAutomatically.asp) (via [Peter Provost](http://www.peterprovost.org/archive/2004/08/16/1785.aspx))

## More in Tips & Tricks

[All posts in Tips & Tricks](https://osherove.com/blog/category/tips-tricks)

- Dec 7, 2004

    ### [Small but useful SQL tips from SQLJunkies](https://osherove.com/blog/2004/12/7/small-but-useful-sql-tips-from-sqljunkies.html)

- Sep 3, 2004

    ### [Solving System.TypeInitializationException when running the Regulator](https://osherove.com/blog/2004/9/3/solving-systemtypeinitializationexception-when-running-the-r.html)

- Jul 24, 2004

    ### [\[Tip\] how to get Windows Explorer to "Yes to All" or "No to All":](https://osherove.com/blog/2004/7/24/tip-how-to-get-windows-explorer-to-quotyes-to-allquot-or-quo.html)

- Apr 29, 2004

    ### [\[Cool Tip\] Speed up Outlook email switching](https://osherove.com/blog/2004/4/29/cool-tip-speed-up-outlook-email-switching.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
