[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 305436] New: Debuging std::cout
From:       rf100 <rashika_fernando () msn ! com>
Date:       2012-08-19 15:03:32
Message-ID: bug-305436-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=305436

            Bug ID: 305436
          Severity: normal
           Version: 4.3.1
          Priority: NOR
          Assignee: kdevelop-bugs@kdevelop.org
           Summary: Debuging std::cout
    Classification: Unclassified
                OS: Linux
          Reporter: rashika_fernando@msn.com
          Hardware: Fedora RPMs
            Status: UNCONFIRMED
         Component: all editors
           Product: kdevelop

When I am debugging the following code:

    cout << "Hello, world!" << endl;
    cout << "line 2...";
    return 0;

The output in KDevelop shows the following output:

Hello, world!
*** Exited normally ***

HOWEVER, if I add "endl" to the second line as follows:

    cout << "Hello, world!" << endl;
    cout << "line 2..." << endl;
    return 0;

I get the following output:

Hello, world!
line 2...
*** Exited normally ***


Obviously, there is bug as the output does not make sense.  The endl should not
determine the cout output.

Reproducible: Always

-- 
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic