Page 1 of 1

ConsoleWindow won't stay open with F5

Posted: Fri Sep 06, 2013 8:09 am
by tomizzo11
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...

Re: ConsoleWindow won't stay open with F5

Posted: Fri Sep 06, 2013 9:04 am
by Mafuyu
Ctrl + F5

Re: ConsoleWindow won't stay open with F5

Posted: Fri Sep 06, 2013 9:29 am
by eranif
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

Re: ConsoleWindow won't stay open with F5

Posted: Sun Sep 08, 2013 2:31 am
by tomizzo11
Thanks so much. I must have misread something.