I try to get some feedback from some renderer methods, but they do not seem to be able to write to a Windows console by using printf or std::cout. Using LOG(INFO) works in cefsimple when command line flags "enable-logging" and "no-sandbox" are set, but it doesn't in our offscreen rendering project. We are using OpenGL (and GLFW for IO) to render in a separate window. Under Windows 10, a console is opened by using the following lines:
- Code: Select all
AllocConsole();
freopen("conin$", "r", stdin);
freopen("conout$", "w", stdout);
freopen("conout$", "w", stderr);
Of course, LOG(INFO) can't write to this console, but without those lines no console opens at all - although command line flags were used.
Any ideas what to do to get some printed output from renderer methods on a console while executing the program? Checking the log files is really annoying for real-time testing.
Thanks!
Daniel