This is not quite what I want. Launch() will start a NEW instance of the debugger. What I want to do is: 1. I start an application in debug mode within the VS.NET IDE (Debug -> Start) 2. This application starts a second process (a console app which acts as a remote server) 3. I want this his second application to attach itself the *existing* instance of the debugger, if the debugger is present. Urs
-----Original Message----- System.Diagnostics.Debugger.Launch() -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Urs Eichmann Sent: Monday, May 13, 2002 10:57 AM To: [EMAIL PROTECTED] Subject: [DOTNET] Automatically attaching a .NET process to a debugger Does anyone know if it's possible for a .NET EXE to attach itself automatically to a .NET debugger when it starts (if there is a debugger present on the machine)? Thanks for any clues Urs You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.