We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 619d6bd commit f7e4703Copy full SHA for f7e4703
1 file changed
src/platform/guiwin.cpp
@@ -1701,6 +1701,16 @@ std::vector<std::string> InitGui(int argc, char **argv) {
1701
SetLocale("en_US");
1702
}
1703
1704
+#ifndef NDEBUG
1705
+ // create a debug console
1706
+ if(AllocConsole()) {
1707
+ (void)freopen("CONOUT$", "w", /*stdout*/stderr);
1708
+ SetConsoleTitle(L"Debug Console");
1709
+ SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),
1710
+ FOREGROUND_GREEN | FOREGROUND_BLUE | FOREGROUND_RED);
1711
+ }
1712
+#endif
1713
+
1714
return args;
1715
1716
0 commit comments