Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Class

StackTrace

class StackTrace

Module: System.Diagnostics
Assembly: System.Runtime.dll
Source file: StackTrace.rvn

Inheritance: Object → StackTrace

An owned text snapshot of the current logical guest call stack. Captures at construction, innermost first, up to 64 frames with explicit truncation. Does not capture arguments, locals, native frames, or suspended async callers.

Constructors

1 item
StackTrace() Captures the caller's current stack. Formatting later does not capture again.

Methods

4 items
Equals(other: object?) -> bool Tests reference identity by default; an ordinary class may override equality. Inherited from Object.Equals
GetHashCode() -> int Returns a stable identity hash by default; an ordinary class may override it consistently with equality. Inherited from Object.GetHashCode
GetType() -> TypeInfo Returns metadata for the concrete runtime type of this instance. Inherited from Object.GetType
ToString() -> string Returns the captured method names and IL instruction indexes. Source lines and full async causal stacks are not yet included. Overrides Object.ToString