adb logcat to show print() output?

I am watching adb logcat while running an app on a connected device, I see a lot of output, but none of my print() statements. How can we output print() data to adb logcat? Thanks [import]uid: 4596 topic_id: 7328 reply_id: 307328[/import]

I’ve tried disabling output buffering.
io.output():setvbuf(‘no’)
http://developer.anscamobile.com/reference/index/filesetvbuf
[import]uid: 4596 topic_id: 7328 reply_id: 25765[/import]

Ok it’s working now. [import]uid: 4596 topic_id: 7328 reply_id: 25771[/import]

How did you get it to work?
Also is there a filter tag we can use? [import]uid: 63700 topic_id: 7328 reply_id: 61071[/import]

If you use logcat in ddms you can just type Corona in the field named filter. [import]uid: 13632 topic_id: 7328 reply_id: 61079[/import]

Or if you use terminal on osx grep for Corona (capital C)

eg:

adb logcat | grep Corona [import]uid: 8872 topic_id: 7328 reply_id: 65907[/import]

coderebelbase, how did you get logcat working in the end, i’m having the same problem - i see lots of things but none of my print statements…

Cheers,
Elliot [import]uid: 81475 topic_id: 7328 reply_id: 93873[/import]

Set

io.output():setvbuf('no')  

in your main.lua. I think logcat will show your prints even if you don’t disable buffering, but just to make sure.

Run

adb logcat Corona:V \*:S  

Which means using filtering - for all Corona output Verbose mode and everything else in Silent mode. You will see only messages and warnings from Corona. [import]uid: 52745 topic_id: 7328 reply_id: 104581[/import]

Or you can launch GUI tools from AndroidSDK/tools/ddmc where you can view logs, managed and save filters. [import]uid: 131398 topic_id: 7328 reply_id: 111377[/import]