Currently, the stack trace could be written to the log. We would like to have a way to return the stack trace information from the current thread, in a cross-platform way, as convenient text.