User forums > Using Code::Blocks

Console not showing up in a console project during debug

(1/1)

effemmeffe:
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");
--- End code ---

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

oBFusCATed:
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.

effemmeffe:
I'm sorry, I was using an old version instead of the new one.
My bad, please ignore this topic.

Navigation

[0] Message Index

Go to full version