Author Topic: Writing to stdout does not work when in debugger  (Read 2410 times)

Offline typicalc

  • Multiple posting newcomer
  • *
  • Posts: 18
Writing to stdout does not work when in debugger
« 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Writing to stdout does not work when in debugger
« Reply #1 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)?
(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 typicalc

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Writing to stdout does not work when in debugger
« Reply #2 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.