Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: effemmeffe on November 22, 2013, 12:20:20 pm

Title: Console not showing up in a console project during debug
Post by: effemmeffe on November 22, 2013, 12:20:20 pm
I'm writing a simple console project on a windows machine and I need to print some information for the user.
I use something like this:
Code
fprintf(stderr, "Data record found\n");

If I compile the Relaese target and launch the program in a terminal I can see the printf output.
I'd like to see this printf output also when I debug my code, I kinda remember that in the past I was able to do that in a terminal windows that popped up once I started the debug, but now that terminal window don't shows up and I cannot see my printf anywhere.
I double checked and my project is defined as a Console application both in the Debug than in the Release target options.

I read in the forum about configuring a new tool to call my program and pipe the output to the C::B log, but I can't understand how to launch the tool during a debug session.
Can please someone help me?
TIA
Title: Re: Console not showing up in a console project during debug
Post by: oBFusCATed on November 24, 2013, 08:26:23 pm
What version of C::B are you using?
10.05 doesn't have this feature, 12.11 should have it, also recent night builds should have it, too.
Title: Re: Console not showing up in a console project during debug
Post by: effemmeffe on November 26, 2013, 10:33:03 am
I'm sorry, I was using an old version instead of the new one.
My bad, please ignore this topic.