basic debug

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
amccampos
Prole
Posts: 3
Joined: Mon Jun 23, 2008 9:39 am

basic debug

Post by amccampos »

Hello all,
I'm testing LOVE for my project, but I faced a very basic restriction: I cannot use the most basic lua debugging tool ( print (x) ).
I think LOVE handles the standard output, so I cannot debug my code and no log file generated.
If someone how how could I debug my lua code in LOVE, please let me know.
A second question is how to generate to .love file. I didn't find on the documentation.
Thanks in advance.
User avatar
rude
Administrator
Posts: 1052
Joined: Mon Feb 04, 2008 3:58 pm
Location: Oslo, Norway

Re: basic debug

Post by rude »

Hello.

On Linux, LOVE should not touch the stdout, and print() should display text on the command line. (Version 0.3.0+)

On Windows, we used the stdout redirection option when building SDL, and a file called "stdout.txt" will be created next to the running love.exe. The output of print() should appear in this file. (Version 0.3.1 ONLY)

The .love file is just a renamed .zip file. (Will review documentation)

Hope this helps! 8-)
amccampos
Prole
Posts: 3
Joined: Mon Jun 23, 2008 9:39 am

Re: basic debug

Post by amccampos »

Thanks. It was helpful.
Post Reply

Who is online

Users browsing this forum: No registered users and 46 guests