getStackTraceElementAt

@Nullable
open fun getStackTraceElementAt(depth: Int): @Nullable StackTraceElement(source)

Gets the StackTraceElement at depth stack frames deep. Zero means the method calling getStackTraceElementAt. One means the caller method of the method calling getStackTraceElementAt.

Parameters

depth

The number of steps to step up the stack. Must not be negative.