Author Topic: Removing the Debug Window when Running?  (Read 5409 times)

Offline Chuckleluck

  • Single posting newcomer
  • *
  • Posts: 2
Removing the Debug Window when Running?
« on: October 19, 2011, 12:49:39 am »
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.

Offline Alpha

  • Developer
  • Lives here!
  • *****
  • Posts: 1513
Re: Removing the Debug Window when Running?
« Reply #1 on: October 19, 2011, 10:21:33 pm »
Are you referring to cb_console_runner (the program that pauses execution and displays something like the following message)?
Code
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.

Offline Chuckleluck

  • Single posting newcomer
  • *
  • Posts: 2
Re: Removing the Debug Window when Running?
« Reply #2 on: October 20, 2011, 05:16:19 pm »
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Removing the Debug Window when Running?
« Reply #3 on: October 20, 2011, 05:38:18 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ