[#VS2013] HowTo: Debug an external EXE file and some bonus track

Hi!

Today I have to use some part of my memory skills to remember how to debug an external exe file in Visual Studio. For this task I usually use WinDbg, however this scenario must be easier than that.

So a couple of steps for thos:

1. Open Visual Studio

2. Menu “File // Open // Project or Solution”

3. In the File System select the EXE file to debug

4. Done! press F5 or Run, and Visual Studio will run the app and it will attach to this process.

Very easy? If you take a look at the project properties, you’ll see the EXE path, working directory, etc.

image

Now bonus track, you can also launch a Profiling session into this external file.

image

The profiling process is the one you already knows, and is also great.

image

This option is great if you want to avoid WinDbg, however if you really want more details go to WinDbg world!

Greetings @ Munich

El Bruno

image image image Google
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s