News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Removing the Debug Window when Running?

Started by Chuckleluck, October 19, 2011, 12:49:39 AM

Previous topic - Next topic

Chuckleluck

How do I remove the debug console window that appears whenever I compile/run my project?  It gets really annoying having to close that window each time I am finished testing the program.

Alpha

Are you referring to cb_console_runner (the program that pauses execution and displays something like the following message)?

Process returned 0 (0x0)   execution time : 9.944 s
Press any key to continue.

If so, open Project->Properties...->Build targets (tab) and uncheck "Pause when execution ends" for each build target.

Chuckleluck

I'm referring to the console window that appears when I run my project, it's title is:
"C:\[Project Path]\bin\Debug\[Project Name]
Unticking that box makes the window close when I close the main program window, but I don't want that debug window to appear at all.

MortenMacFly

Quote from: Chuckleluck on October 20, 2011, 05:16:19 PM
Unticking that box makes the window close when I close the main program window, but I don't want that debug window to appear at all.
Change the application type to "GUI" in the project properties.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]