0

I want to see qDebug() messages in Windows cmd as qDebug() writes to cerr I just did

std::cerr.rdbuf(std::cout.rdbuf());

Which didn't work. I still don't see the debug messages on cmd.

Neel Basu
  • 12,638
  • 12
  • 82
  • 146
  • possible duplicate of [Console output in a Qt GUI app?](http://stackoverflow.com/questions/3360548/console-output-in-a-qt-gui-app) – houbysoft Jul 08 '12 at 16:42
  • This question asks WHY exchanging rdbuf's don't work. – Neel Basu Jul 08 '12 at 18:08
  • Can you see output written directly to `std::cout`? If not, then this is a duplicate of the other question. – arx Jul 08 '12 at 19:59

0 Answers0