This is a mirror of official site: http://jasper-net.blogspot.com/

Debug Executable Without Using Attach to Process

| Thursday, October 28, 2010
Okay, so the full title here is "Debug Your Executable Without Using the Traditional 'Attach to Process' Menu Items"  but that was way too long for me so I just shortened it up a bit.  You probably already know about the Attach to Process menu items on the Debug and Tools menus, but what if, for example, the process fails before you can attach to it?  Maybe it fails on startup or it runs too fast for you to catch it.  Well we have a solution for you--literally!  Did you know you can create a Solution for executables?

It's easy to do, just find the executable you want to create a solution for by going to File -> Open Project/Solution:

0407.image_5F00_thumb.png

Or, if you have a Solution open already, File -> Add -> Existing Project:
Now you can run the executable just like any other project by pressing F5.  If you have multiple projects make sure to set it as the startup:

Read more: Visual Studio Tips and Tricks

Posted via email from .NET Info

0 comments: