ConsoleWindow won't stay open with F5

CodeLite installation/troubleshooting forum
tomizzo11
CodeLite Curious
Posts: 2
Joined: Fri Sep 06, 2013 8:03 am
Genuine User: Yes
IDE Question: C++
Contact:

ConsoleWindow won't stay open with F5

Post by tomizzo11 » Fri Sep 06, 2013 8:09 am

So I'm new to C++ and CodeLite. When I run a program by pressing F5, the console window won't stay open. It closes immediately. However, when I manually click on "Run" under the build tab, it seems to work fine. This seems odd to me...

Mafuyu
CodeLite Curious
Posts: 8
Joined: Thu Sep 05, 2013 9:08 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: ConsoleWindow won't stay open with F5

Post by Mafuyu » Fri Sep 06, 2013 9:04 am

Ctrl + F5

User avatar
eranif
CodeLite Plugin
Posts: 6110
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: ConsoleWindow won't stay open with F5

Post by eranif » Fri Sep 06, 2013 9:29 am

tomizzo11 wrote:So I'm new to C++ and CodeLite. When I run a program by pressing F5, the console window won't stay open. It closes immediately. However, when I manually click on "Run" under the build tab, it seems to work fine. This seems odd to me...
F5 starts the debugger, so if you want it to stay open just place a break point somewhere...
Ctrl-F5 runs the program without the debugger

Eran
Make sure you have read the HOW TO POST thread

tomizzo11
CodeLite Curious
Posts: 2
Joined: Fri Sep 06, 2013 8:03 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: ConsoleWindow won't stay open with F5

Post by tomizzo11 » Sun Sep 08, 2013 2:31 am

Thanks so much. I must have misread something.

Post Reply