Code::Blocks Forums

User forums => Help => Topic started by: typicalc on August 31, 2016, 02:33:05 pm

Title: Writing to stdout does not work when in debugger
Post by: typicalc on August 31, 2016, 02:33:05 pm
I have
Code
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.
Title: Re: Writing to stdout does not work when in debugger
Post by: oBFusCATed on September 01, 2016, 08:53:59 am
What is the type of your project/target?
Do you have the selected terminal installed (gnome-terminal/xterm or something else)?
Title: Re: Writing to stdout does not work when in debugger
Post by: typicalc on September 01, 2016, 06:50:01 pm
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.