Game Development Community

Script debuging problems

by Firas · in Torque Game Engine · 08/13/2005 (8:41 am) · 2 replies

Hi guys

I have a problem with script, and I will be thankfull for any knid of help:

I'm writing script and I have a script file have more that 1000 line of code, and a lot of flags Exists on many places in that file

so that make debuging these flags and the code in the file really hard to follow

i'm debuging using echo() command to follow that flags and any other variables.

so is there any tools or methods you are using to debug big torque script files without pain?

#1
08/13/2005 (12:26 pm)
Trace(), debuggers like Torsion, error/warn to give different colored output, good programming practices so the code is easier to follow, breaking the file up into multiple sub files!, using backtrace at strategic points to get a call stack.
#2
08/14/2005 (6:21 pm)
@Firas - You can see Torsion and get a download link over here.