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
viewing prints statements on OS X
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- 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
You have to run it from terminal.
- 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
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".
Re: viewing prints statements on OS X
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
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".
- 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
bash.rc and alias are your friends. Or even just including love in your path.Praetor3k wrote:As much as I enjoy terminal, typing out directories is a bit of a pain
Then it is a matter of typing "love ."
- 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
No worriesPraetor3k 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
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"
Code: Select all
love .
Who is online
Users browsing this forum: Bing [Bot] and 3 guests