I have a need to run debug.tracestack() in order to determine what code is responsible for calling a particular function that seems to be launching itself when it shouldn't. However, debug.tracestack() doesn't seem to be available on Tabletop Simulator.

So how else can I obtain this functionality and debug a misfiring function?