Suggested to open a console in debug mode


#1

Right now we need to check the logging message inside output panel of Microsoft Visual Studio
If we call AllocConsole before start, we should be able to open a console for both input/output.


#2

You mean have a embedded console? I think it’s a good idea. feel free to submit a feature request
http://cocos2d-x.org/projects/native/issues/new


#3

Let me provide the sample code (AppDelegate.cpp)

@
AppDelegate::AppDelegate() {
BOOL f = AllocConsole();
freopen(“CONIN$”, “r”, stdin);
freopen(“CONOUT$”, “w”, stdout);
freopen(“CONOUT$”, “w”, stderr);
}
@

Result
A console for easy debugging


#4

Isn’t this already implemented in the Lua version of the project?


#5

I have not tried lua version.
The current setting should be inconsistent