User forums > Help
Writing to stdout does not work when in debugger
(1/1)
typicalc:
I have
--- Code: ---int main (int argc , char *argv[] )
{
fprintf(stdout,"Testing\n");
return 1;
}
--- End code ---
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)?
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.
Navigation
[0] Message Index
Go to full version