Debugging scripts question...

Is there a set of script properties that can be used for debugging? I’d like to do something like this to facilitate script tracing…


script MyScript 

//for debugging
write "starting : " & self.ScriptName

try
some stuff
catch
onerror write "error at line : " self.CurrentLineNumber
end try


Is anything like that available to me now, or will it be in the future?

Take a look at the CallStack() function which is (minimally) documented in Chapter 17 of the SenseTalk Reference manual. That should give you what you want. For example:

put the line of the last item of the callStack