Launching a debugger from an application

You have a managed application. Let’s suppose a Winforms application in VC#. You want your application to launch the debugger automatically. For this purpose, you added in your program the line System.Diagnostics.Debugger.Launch(). When we run the application outside the debugger, it runs fine, launches the debugger and works normally.  Now what happens when we run…

0