cocos ide 调试lua 程序自动关闭问题的解决
D:projectclientmuguajiframeworkscocos2d-xtoolssimulatorlibsimulatorlibruntimeConsoleCommand.cpp rapidjson::Value bodyvalue(rapidjson::kObjectType); rapidjson::Document* filecfgjson = _fileserver->getFileCfgJson();for (auto it = filecfgjson->MemberonBegin(); it != filecfgjson->MemberonEnd(); ++it) { //bodyvalue.AddMember(it->name.GetString(),it->value.GetString(),dReplyParse.GetAllocator());//注释这一句bug cause lang and shutdownapp 当资源太多的时候ide通信超时直接发起shutdownapp命令,导致onStartDebuger没有被调用,所以没有启动lua调试器 } dReplyParse.AddMember("body",bodyvalue,dReplyParse.GetAllocator()); dReplyParse.AddMember("code",dReplyParse.GetAllocator());
正常的交互命令应该是这样 onSendCommand是代码中打印的log Console: listening on 0.0.0.0 : 6010
onSendCommand {"cmd":"getversion","seq":42} onSendCommand {"cmd":"getfileinfo","seq":43} //这个地方超时的话会导致exe被关闭 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- dart – Flutter中的jest快照测试相当于什么?
- 【转】cocos2d-x (音效-音乐)SimpleAudioEngine
- ajax的url调用Struts 2的action方法,浏览器提示
- 通过 AJAX 加载初始数据
- react-native – 如何在Android中实现React Nati
- c# – 如何使用StorageItem保存vsto加载项特定数
- 【spring框架】beans.xml规范与ClassPathXmlAppl
- npm安装Vue.js
- c – Boost :: asio,共享内存和进程间通信
- ruby-on-rails – before_save中的mark_for_dest