Cocos code IDE does not print cclog information in console


#1

Recently, cocos code IDE(http://www.cocos2d-x.org/wiki/Getting_Started_with_Cocos_Code_IDE) is available for debugging lua binding project of cocos2d-x which is very convenient.
But, when running game or debugging game in window platform, my log information of cclog function does not appear in console. When i end running game or debugging game, all the log information of cclog function appear in console, this is not convenient for debugging, so how can i fix this?

any suggestion?
Thanks.


#2

It has releaseed 1.0.0.beta ,may be fixed your problom , http://www.cocos2d-x.org/wiki/Code_Editor


#3

I have the last version and nothing appears in the console, only “upload file…”


#4

try “debug” mode.


#5

@Guepard,which Cocos IDE version did you used?


#6

Last, and print runs sometimes and sometimes no.


#7

We will fix this bug in next version which maybe release two weeks later.


#8

:slight_smile:


#9

i have the same problem. I am using the newest version of Cocos IDE and puting something like this: cc.log(“this is a log”); in code prints nothing to the console. Please can anyone help me?


#10

I had similar problem. Please refer to this thread

There is no output if you use framework mode , so please switch to the engine mode.
http://discuss.cocos2d-x.org/uploads/default/_optimized/cf9/4c5/bbedc1c482_607x500.png


#11

Unfortunately that is not the problem. Both js and lua are set to engine mode (what is the difference between engine mode and framework anyway?). I have even build custom simulator but it doesnt help. I forgot to mention - I am using mac with yosemite os. Console out put does not work either in JavaScript and Lua projects. The only log i get from console is this:

WORKAREA WIDTH 1280.00, HEIGHT 712.00
FRAME SCALE = 1.00
Console: listening on 0.0.0.0 : 6050
Console: listening on 0.0.0.0 : 6060

LOAD Js FILE: main.js

libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile

Please help ;(


#12

over ride cc.log to any function like below in your main.js

cc.log = function(){
	console.log.apply(console, arguments);
};

but while releasing your game make sure to comment these lines;