printStackTrace

context(env: JniEnv)
fun printStackTrace()(source)

Prints an exception and a backtrace of the stack to a system error-reporting channel, such as stderr.

The pending exception is cleared as a side effect of calling this function. This is a convenience routine provided for debugging.