Skip to content
Snippets Groups Projects
Commit a0597b7d authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Add stderr redirection to console on Windows

parent e91e8122
No related branches found
No related tags found
No related merge requests found
......@@ -70,10 +70,11 @@ public:
if (AllocConsole())
{
freopen("CONOUT$","w",stdout);
freopen("CONOUT$","w",stderr);
console_out = std::ofstream("CONOUT$");
std::cout.rdbuf(console_out.rdbuf());
std::cerr.rdbuf(console_out.rdbuf());
SetConsoleTitle("Debug Console");
std::cout << "Debugging..." << std::endl;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment