Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the log printed when I use print("") in Corona Engine?

Tags:

coronasdk

I used the print("Helloworld") function in the code, where is the output printed?

like image 318
Hexor Avatar asked Dec 06 '22 07:12

Hexor


1 Answers

A lot depends on how you started Corona and if you're on a Mac or PC or if you're looking for this information while running in the XCode simulator or on a device.

For a Mac, you are best to start Corona SDK using the "corona-terminal" app in the Applications/CoronaSDK folder. This will launch the Terminal app, which will in turn launch Corona SDK. Your errors, warnings and print statements will show in the terminal window that gets started up. There are some IDE type editors that can start Corona SDK for you in which case, they can capture the output and show it in the IDE.

On a PC, Corona SDK will start up a cmd shell screen for you. The print messages show there.

When using the XCode simulator (not the Corona SDK simulator), you will find the output in the Console app. Using spotlight (The magnifying glass at the top right of your mac), type in "Console" and launch the application.

If you have installed the app to an Apple device, you can use XCode's Organizer with your device tethered to the Mac's USB port and there is a link on the left nav bar called "Console" that will let you see the log messages from the device.

On Android, you need to install the "Android Debug Bridge" tools and from a terminal window, you can enter the command:

 adb logcat

with your Android device tethered to your computer's USB port to see the console log messages from the Android device. The Android device needs to be in "Developer Mode" for this to work.

like image 180
Rob Miracle Avatar answered Dec 30 '22 17:12

Rob Miracle