On this page
printStackTrace
fun Throwable.printStackTrace()
For Common
Prints the detailed description of this throwable to the standard output or standard error output.
For JVM
Prints the detailed description of this throwable to the standard error output.
For JS
Prints the detailed description of this throwable to console error output.
For Native
Prints the detailed description of this throwable to the standard output.
fun Throwable.printStackTrace(writer: PrintWriter)
Prints the detailed description of this throwable to the specified writer.
fun Throwable.printStackTrace(stream: PrintStream)
Prints the detailed description of this throwable to the specified stream.
© 2010–2022 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/print-stack-trace.html