News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Writing to stdout does not work when in debugger

Started by typicalc, August 31, 2016, 02:33:05 PM

Previous topic - Next topic

typicalc

I have
int main (int argc , char *argv[] )
{
fprintf(stdout,"Testing\n");
return 1;
}


When I run it from the console I get "Testing". But When I run it from Codeblock debugger I don't get the text.
I am running from on a Linux Debian distro.
I have tried to get a console opening from Codeblocks Setting menu to no avail. Please don't reply "Have you tried...?" Yes - I have tried. Failing that I just want to stdout to go to a specific stdout console. Redirecting to text file work.

oBFusCATed

What is the type of your project/target?
Do you have the selected terminal installed (gnome-terminal/xterm or something else)?
(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!]

typicalc

I managed to find the solution.
At "Project"->"Set programs' arguments" I had to check on "Run host in terminal". It was off and causing terminal not popping up.