Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Console doesn't update properly
Console doesn't update properly [message #1176574] Fri, 08 November 2013 12:16 Go to next message
Michael Schneider is currently offline Michael SchneiderFriend
Messages: 2
Registered: November 2013
Junior Member
Hi together,

I just realized a problem with my console.

History:
I´m working all day with eclipse without problems about the console.
There are a couple of printf s in my program which are printed to the console properly.

After adding a couple of features to my code (not touching the working code) i realized that my console only updates when my program is ended.
So, if I set a breakpoint for example after a printf, I cant see that print. But I can see it, if the program has come to an end and the debug session is terminated.

What also happens is at that code and a normal Run, no debug:
printf("Please enter the amount of elements : \n");
scanf("%d", &size);

I cant see that print and "need to guess" that I have to enter a number now.

After the completion of the programm its visible in the console. But the number I have entered is gone there.


I also tryed some old, working code which i definitely didn´t change and have the same behaviour.


Maybe i changed/deleted any setting of eclipse with some exceptions caused by build fails?


Thanks for your help!
Re: Console doesn't update properly [message #1176927 is a reply to message #1176574] Fri, 08 November 2013 16:51 Go to previous message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 11/8/2013 6:46 AM, Michael Schneider wrote:
> Hi together,
>
> I just realized a problem with my console.
>
> History:
> I´m working all day with eclipse without problems about the console.
> There are a couple of printf s in my program which are printed to the
> console properly.
>
> After adding a couple of features to my code (not touching the working
> code) i realized that my console only updates when my program is ended.
> So, if I set a breakpoint for example after a printf, I cant see that
> print. But I can see it, if the program has come to an end and the debug
> session is terminated.
>
> What also happens is at that code and a normal Run, no debug:
> printf("Please enter the amount of elements : \n");
> scanf("%d", &size);
> I cant see that print and "need to guess" that I have to enter a number
> now.
>
> After the completion of the programm its visible in the console. But the
> number I have entered is gone there.
>
>
> I also tryed some old, working code which i definitely didn´t change and
> have the same behaviour.
>
> Maybe i changed/deleted any setting of eclipse with some exceptions
> caused by build fails?
>
>
> Thanks for your help!

You might get more and better help for this issue in the Eclipse CDT forum.
Previous Topic:Where is JDK in eclipse for java?
Next Topic:Cannot open Eclipse Marketplace
Goto Forum:
  


Current Time: Thu Apr 25 09:55:36 GMT 2024

Powered by FUDForum. Page generated in 0.10567 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top