Debug on iOS device, filter (grep) device log file

In case someone else wonders about this. I only want to see output from my app - not everything from the device. I do this using the terminal with this software;

cd

mkdir tools

cd tools

git clone https://github.com/cbowns/deviceconsole.git

make

To debug;

(attach device using USB)

./deviceconsole | grep MYAPP

start app on device

An alternative approach for users on macOS is to use the built-in Console app, select the device in the left panel and enter filter values and options in the Search bar.

You can also run the iOS syslog utility built into the Corona Simulator in a Terminal.  It tries to filter out some of the cruft that appears even when you are filtering just for one app.

For example (the argument is the built app bundle):

/Applications/CoronaSDK-3040/Corona\ Simulator.app/Contents/Resources/ios\_syslog.sh ~/Desktop/tmp/StatusBar.app

This is what is used to display the application output when you choose the Copy to Device option in the Build dialog.

I’ll look into how we can make this easily available from the Simulator itself without having to do a build.

An alternative approach for users on macOS is to use the built-in Console app, select the device in the left panel and enter filter values and options in the Search bar.

You can also run the iOS syslog utility built into the Corona Simulator in a Terminal.  It tries to filter out some of the cruft that appears even when you are filtering just for one app.

For example (the argument is the built app bundle):

/Applications/CoronaSDK-3040/Corona\ Simulator.app/Contents/Resources/ios\_syslog.sh ~/Desktop/tmp/StatusBar.app

This is what is used to display the application output when you choose the Copy to Device option in the Build dialog.

I’ll look into how we can make this easily available from the Simulator itself without having to do a build.