Page 1 of 1

basic debug

Posted: Mon Jun 23, 2008 9:49 am
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.

Re: basic debug

Posted: Mon Jun 23, 2008 10:45 am
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-)

Re: basic debug

Posted: Mon Jun 23, 2008 12:15 pm
by amccampos
Thanks. It was helpful.