当前位置:网站首页>Output Lua print to the cocos2d console output window
Output Lua print to the cocos2d console output window
2022-06-26 02:03:00 【_ Bruce】
local babe_tostring = function(...)
local num = select("#",...);
local args = {...};
local outs = {};
for i = 1, num do
if i > 1 then
outs[#outs+1] = "\t";
end
outs[#outs+1] = tostring(args[i]);
end
return table.concat(outs);
end
local babe_print = print;
local babe_output = function(...)
babe_print(...);
if decoda_output ~= nil then
local str = babe_tostring(...);
decoda_output(str);
end
end
print = babe_output;
cocos2d debugging lua At the time vs Control window cannot show pass print Output content , It is OK to reseal through the above methods , Then go on through print("dsasasdas"), You can be in vs In the console output window, we can see the contents we output
边栏推荐
- Codecraft-17 and Codeforces Round #391 (Div. 1 + Div. 2, combined) D. Felicity‘s Big Secret Revealed
- 连接投影仪
- 程序 编译的步骤 预编译 编译 汇编 连接
- 如何使用命令将文件夹中的文件名(包括路径)写入到txt文件中
- One stop solution EMQ for hundreds of millions of communication of Internet of things
- 其他代码,,vt,,,k
- 字节序问题
- 分布式系统(二)分布式事务的理解
- FPGA实现图像二值形态学滤波——腐蚀膨胀
- shell curl 执行脚本,带传参数,自定义参数
猜你喜欢
Exploring temporary information for dynamic network embedding
jenkins汉化及汉化无效解决方案
分布式系统(二)分布式事务的理解
Tengwenze, a hot-blooded boy, was invited to serve as the image ambassador of the global finals of the sixth season perfect children's model
Pixel6 unlock bootloader
Abnova CMV CISH probe solution
Show spirit chenzitong was invited to be the chief experience officer of the global finals of the sixth season perfect children's model
Abnova anti GBA monoclonal antibody solution
biggan:large scale gan training for high fidelity natural image synthesis
V4L2+QT视频优化策略
随机推荐
How to set achievable medium - and long-term goals?
连接投影仪
Connectez Le projecteur
cyclegan:unpaired image-to-image translation using cycle-consistent adversarial network
缓存技术之第一次亲密接触
物联网亿万级通信一站式解决方案EMQ
pixel 6 root
PTA class a simulated second bullet: 1136-1139
Reverse output an integer
求n乘阶之和
cyclegan:unpaired image-to-image translation using cycle-consistent adversarial network
One stop solution EMQ for hundreds of millions of communication of Internet of things
Abnova CSV monoclonal antibody solution
Tcp网络通信中各个状态的含义
makefile 中export set ENV 的区别和作用
创建OpenGl窗口
LeetCode 31 ~ 40
biggan:large scale gan training for high fidelity natural image synthesis
安装了Visual Studio 2013 Redistributable,mysql还是安装失败
Exploring temporary information for dynamic network embedding