viewing prints statements on OS X

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Praetor3k
Prole
Posts: 7
Joined: Sun Jul 18, 2010 7:30 pm

viewing prints statements on OS X

Post by Praetor3k »

Hi there,
Sorry if this a newb question, but I've searched and can't find an answer to this. In OS X I can drag and drop my folder with main.lua on love executable and it runs, however I can't work out how to view the print statements in my code. Can anyone tell me how please?

many thanks
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: viewing prints statements on OS X

Post by TechnoCat »

You have to run it from terminal.
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: viewing prints statements on OS X

Post by BlackBulletIV »

When you don't run it via the terminal, you can view error messages and print messages (at least when you close LOVE) via Console.app (just search for it). The messages will come from either org.love2d.love or just "love".
Praetor3k
Prole
Posts: 7
Joined: Sun Jul 18, 2010 7:30 pm

Re: viewing prints statements on OS X

Post by Praetor3k »

That's just what I was looking for, thank you so much!
As much as I enjoy terminal, typing out directories is a bit of a pain :)
BlackBulletIV wrote:When you don't run it via the terminal, you can view error messages and print messages (at least when you close LOVE) via Console.app (just search for it). The messages will come from either org.love2d.love or just "love".
User avatar
TechnoCat
Inner party member
Posts: 1611
Joined: Thu Jul 30, 2009 12:31 am
Location: Milwaukee, WI
Contact:

Re: viewing prints statements on OS X

Post by TechnoCat »

Praetor3k wrote:As much as I enjoy terminal, typing out directories is a bit of a pain :)
bash.rc and alias are your friends. Or even just including love in your path.
Then it is a matter of typing "love ."
User avatar
BlackBulletIV
Inner party member
Posts: 1261
Joined: Wed Dec 29, 2010 8:19 pm
Location: Queensland, Australia
Contact:

Re: viewing prints statements on OS X

Post by BlackBulletIV »

Praetor3k wrote:That's just what I was looking for, thank you so much!
As much as I enjoy terminal, typing out directories is a bit of a pain :)
No worries :)

Remember that the terminal has directory completion, just type something and press tab for it to complete the rest of the path (if there's only one matching filename). As TechnoCat said, you can use alias to help you as well. Edit a file located at ~/.bash_profile and add this line:

Code: Select all

alias love="/Applications/love.app/Contents/MacOS/love"
then you can type

Code: Select all

love .
Post Reply

Who is online

Users browsing this forum: snibo and 4 guests