Author Topic: Console not showing up in a console project during debug  (Read 4398 times)

Offline effemmeffe

  • Multiple posting newcomer
  • *
  • Posts: 18
Console not showing up in a console project during debug
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Console not showing up in a console project during debug
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline effemmeffe

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Console not showing up in a console project during debug
« Reply #2 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.