環境:cocos2dx 3.16 + lua 開發
在lua層使用print輸入一個超級大的table物件時,有顯示出Mac控制臺顯示日志時,就卡死了,最后定位到的代碼是
- (void) openConsoleWindow
{
...
int outfd = [[_pipe fileHandleForWriting] fileDescriptor];
if (dup2(outfd, fileno(stderr)) != fileno(stderr) || dup2(outfd, fileno(stdout)) != fileno(stdout)) 這一句導致卡死
...
}
在做重定向時卡死,網上查了資料也不知道怎么改,看哪位大神有修改方案可以提供下。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/35642.html
標籤:Cocos2d-x
