哦,知道了,CodeIDESupport.h 里面有個(gè)CC_CODE_IDE_DEBUG_SUPPORT,改成1就行了,
改完后通過vs啟動(dòng)lua項(xiàng)目OK控制臺(tái)窗口出來了
但是直接運(yùn)行simulator\win32\LuaStudioTest.exe
黑屏 顯示資源無法加載
需要修改
G:\Mycocos310Cpp\LuaStudioTest\frameworks\runtime-src\Classes\AppDelegate.cpp
中代碼
#if (COCOS2D_DEBUG > 0) && (CC_CODE_IDE_DEBUG_SUPPORT > 0)
// NOTE:Please don't remove this call if you want to debug with Cocos Code IDE
auto runtimeEngine = RuntimeEngine::getInstance();
runtimeEngine->addRuntime(RuntimeLuaImpl::create(), kRuntimeEngineLua);
runtimeEngine->start();
#endif
if (engine->executeScriptFile("src/main.lua")) //一定要被執(zhí)行到
{
return false;
}
上面的代碼 其實(shí)錯(cuò)了 改workdir就可以了
3.15打開打印變了
G:\MyCocosLua315\hello315\frameworks\runtime-src\proj.win32\SimulatorWin.cpp
// define 1 to open console ui and setup windows system menu, 0 to disable
define SIMULATOR_WITH_CONSOLE_AND_MENU 1
0關(guān)閉 1打開