views:

28

answers:

0

I'm working on a program in Eclipse, outputting debugging information to 'clog'. I can not get clog or cerr output to show up in the console. Not only would I like to read this information, but I'm getting program hangs waiting on inserts to clog to finish.

I assume this is because no-one is pulling information from the stderr stream and once it fills up, the insertion to clog waits on space to put the new information.

I'm using Eclipse Helios with CDT version 7.0.1.201009141542 (latest) on Windows XP.

There are options in the preference console for changing the colors of stdout and stderr, but I don't see any switches to turn them on or off.

The minimal program below produces no output. It will get through about 100 lines before hanging.

#include <iostream>

using namespace std;

int main() {
    for(int i = 0; ;i++) {
        clog << "Message line number: " << i;
    }

    return 0;
}

Any ideas?