Mike
Mike

Reputation: 329

Visual Studio 2010 Keep Output Window Open on Debug

Is there a way in Visual Studio to keep the Output (Debug) window open when starting a debug session (Press F5)? Currently, it flips back to the last source file I was viewing which is mildly annoying. I've looked hard for a setting or an extension. It's likely sitting right under my nose but darn if I can find it.

Upvotes: 4

Views: 6325

Answers (4)

user14859794
user14859794

Reputation: 1

1: open notepad.

2: Type the name of your saved c++ file which you had like to stay and type "pause". eg: suppose the name of the c++ file is hello_world then type: hello_world.exe pause\

3: save the file with .bat extension on ur desktop

4: Open the file that u saved on the desktop and run ur c++ program now see the result!

Upvotes: 0

espiering
espiering

Reputation: 297

I had this problem too! After you press F5, focus the visual studio window and click Debug -> Windows -> Output

This will add the debug output screen to your debugging window set.

Upvotes: 0

Jacob G
Jacob G

Reputation: 3665

Unless I'm wildly misunderstanding your question, Visual Studio stores two sets of window positions, one for when you're developing and one for when you're running. Once you are running, you can arrange the windows however you like and they should remain in that position on subsequent debugs.

For example, in my IDE, I have the Error List, Output, Find Results 1 and Pending Changes windows along the bottom when I'm developing. When I launch the debugger, that changes to the Output, Locals, Watch 1, Find Results 1, Breakpoints, Call Stack, Immediate and Command Windows.

Upvotes: 1

Greg Hewgill
Greg Hewgill

Reputation: 994817

Try CtrlF5. That should wait until you press a key before closing the console output window.

Upvotes: 2

Related Questions