cocos ide 调试lua 程序自动关闭问题的解决
来源:互联网 发布:开网络棋牌 编辑:程序博客网 时间:2024/05/16 12:51
D:\project\client\muguaji\frameworks\cocos2d-x\tools\simulator\libsimulator\lib\runtime\ConsoleCommand.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", 0, dReplyParse.GetAllocator());
正常的交互命令应该是这样
onSendCommand是代码中打印的log
Console: listening on 0.0.0.0 : 6010
Console: listening on 0.0.0.0 : 6020
iShow!
onSendCommand {"cmd":"getversion","type":"request","seq":42}
onSendCommand {"cmd":"getfileinfo","type":"request","seq":43}
onSendCommand {"debugcfg":"'127.0.0.1','10000','luaidekey',nil,'win','\/CocosLuaGame\/'","cmd":"start-logic","type":"request","seq":44}
onStartDebuger
startScript debug args = require('debugger')('127.0.0.1','10000','luaidekey',nil,'win','/CocosLuaGame/','')
debug args = require('debugger')('127.0.0.1','10000','luaidekey',nil,'win','/CocosLuaGame/','')
onSendCommand {"cmd":"getversion","type":"request","seq":42}
onSendCommand {"cmd":"getfileinfo","type":"request","seq":43} //这个地方超时的话会导致exe被关闭
- cocos ide 调试lua 程序自动关闭问题的解决
- 如何使用Cocos Code IDE调试Lua开发的游戏
- cocos ide win32 调试问题
- Dev-C++ IDE 运行程序时,程序运行结束窗口自动关闭的问题
- C++ IDE 运行程序时,程序运行结束窗口自动关闭的问题
- 在cocos code ide中运行lua-tests例子程序
- Cocos2d-lua-3.8.1在Cocos code ide中创建新项目的问题
- Cocos Code IDE + Lua初次使用FastTiledMap的坑
- cocos ide 出现lua语句不执行的bug
- 安装cocos ide 遇到的问题
- cocos lua遇到的一些问题
- 使用Cocos2d-x-3.6创建Lua项目Cocos Code IDE V1.2可调试
- quick-lua 3.5 工程 cocos code ide 1.2.0 断点调试
- Anjuta IDE 下调试程序容易忽略的一个问题
- cocos-lua问题记录
- cocos lua 问题总结
- 在Cocos Code IDE里打开cocos2d-x自带的lua测试项目 lua-tests
- Cocos Code ide 新建的项目无法运行,如何解决
- 【Number Theory】Pythagorean Triples Generating Program
- 事务的概念及事务的四个特征
- 【项目管理】之springMVC+spring+Mybatis环境搭建
- 设置MyEclipse或Eclipse 中 Jsp页面的默认编码
- Android Handler内存泄露分析
- cocos ide 调试lua 程序自动关闭问题的解决
- 使用retn指令调用API
- django 在应用app下面template
- tomcat启动,报问题:To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
- (1) 漂亮的日期控件
- java endsWith()和startsWith方法的解释
- js代码获取IP地址的三种方法,通过js取得客户端的IP地址。
- Ubuntu环境下的iptables的端口转发配置实例
- Android studio报module not specified的处理