Using the simulator for Android

@Fogview

unfortunately I let myself fool about the “realtime” aspect because it was for some updating the display while my App was running for other events (locking the device for example). But it seems that this is was just a coincident.

I wonder if it is possible to “flush” the output from the print statements earlier. Seeing those other stuff being realtime makes me think that should be possible for the Corona Team to implement!

In addition… we all should make sure to not leave “stupid” print statements in the final code :slight_smile: [import]uid: 6928 topic_id: 1058 reply_id: 3170[/import]

@OderWat,

I was looking at one of my programs this morning and I’m seeing the print statements in real-time so I’m not sure what’s going on. I’m happy that there is a way to view this (even if it’s not always in real time).

I agree about not leaving print statements in your code. I’ve looked at a number of commercial apps with the Console Output and noticed that they left print (NSLog) statement in their final code builds.

Tom [import]uid: 6119 topic_id: 1058 reply_id: 3172[/import]

@Fogview

I think I just found the solution!

It is very simple… and should be documented somewhere!

Place this at the begin of your main.lua file!

io.output():setvbuf('no') -- disable output buffering for console in device!  

[import]uid: 6928 topic_id: 1058 reply_id: 3187[/import]