Page 1 of 1

Windows 7 Lua Debugging

Posted: 07 Apr 2011, 23:16
by Freezerburn
Is there an easy way to capture the console output of Spring during start-up of the game/mod, similar to if you were to run Spring in a Unix environment? I usually have a terminal that I use to run Spring on a Mac, but I'm currently in a Windows 7 environment and am unable to see the error messages my Lua scripts are generating, making it impossible to debug my code.

Re: Windows 7 Lua Debugging

Posted: 07 Apr 2011, 23:17
by FLOZi
Run in a window (as you probably are anyway) and just read infolog.txt?

Re: Windows 7 Lua Debugging

Posted: 07 Apr 2011, 23:21
by Freezerburn
FLOZi wrote:Run in a window (as you probably are anyway) and just read infolog.txt?
I can't seem to find any infolog.txt anywhere in the Program Files/Spring directory. I checked pretty much every folder, as far as I can tell.

EDIT: Derp, found it in Documents. Thanks!

Re: Windows 7 Lua Debugging

Posted: 07 Apr 2011, 23:24
by FLOZi
Should be sat right next to your spring.exe.

edit: Damn, I was about to put 'or maybe it was moved to documents'

Really, that is a PITA for content devs. :x

Perhaps there is a way to force it to remain in its CORRECT location. :P

Re: Windows 7 Lua Debugging

Posted: 08 Apr 2011, 03:02
by Forboding Angel
No it's not hard. Just add libraries.

Re: Windows 7 Lua Debugging

Posted: 09 Apr 2011, 08:42
by CarRepairer
Use Komodo or Notepad++ to run Spring.exe and it shows you the output.