printf outputs nothing in KDevelop

Tim Harper tim at matchbin.com
Thu Apr 6 18:18:48 BST 2006


Hey there
I believe you need to stick a "\n" at the end of your printf there.  When 
using cout, the buffer won't get "flushed" (displayed) until it has a certain 
amount of data in it, or a readline, I believe.

If I'm wrong, anyone correct me

Tim


On Thursday 06 April 2006 04:45, Žáček Kryštof wrote:
> Hi folks, I am new to KDevelop (3.3.2) and I have encouneterd a strange
> problem:
>
> if I debug simple C console program, then the code
>
>    printf("Hello");
>
> outputs "Hello" to Application toolview window only the first time I start
> the debugger. The second time there is no output, I have to restart
> KDevelop to make it work again.
>
> I also don't know where  to input stdin for functions like scanf(), gets()
> ... when debugging the program.
>
> Any suggestion?
> Thanks
>
> Krystof
>
> -
> to unsubscribe from this list send an email to
> kdevelop-request at kdevelop.org with the following body: unsubscribe
> your-email-address

-
to unsubscribe from this list send an email to kdevelop-request at kdevelop.org with the following body:
unsubscribe ťyour-email-addressŤ



More information about the KDevelop mailing list