Due to a variety of reasons (spam, infinite loops with OnPluginPartialLine, etc), I am unable to use trace in situations where my triggers, aliases and scripts are under real pressure, and actually break. And the idea struck me: specifying a function other than world.Note for the trace data to be sent to. Ie, in Python:
Altarnatively, if for whatever reason this is impractical, an OnPluginTrigger/AliasMatch for debugging would be a great boon, and vastly preferable to putting an equivalent bit of code in all my triggers and aliases.
debug_log = file('C:/Program Files/MUSHclient/logs/debug_log.txt', 'w')
world.TraceDestination = debug_log.write
world.Trace = TrueAltarnatively, if for whatever reason this is impractical, an OnPluginTrigger/AliasMatch for debugging would be a great boon, and vastly preferable to putting an equivalent bit of code in all my triggers and aliases.