Please add a function that returns the contents of DumpStack as a string instead of writing it to the logfiles.
proto string DumpStackString(); <or> proto void DumpStack(out string stack);
This would help with giving other modders more useful error messages.
For example: In the Community Framework mod, we would like to remove internal calls from the stack (by manipulating the output string) so that the user only sees the lines where he did something wrong.
This could also enable a few reflection capabilities because if we know where code is being called from we can look up some basic information in the source script files.