StackTraces
Stack information representing execution context, with the following fields:
-
The name of the function containing the execution context.
linfo::Union{Core.MethodInstance, CodeInfo, Nothing}
The MethodInstance containing the execution context (if it could be found).
line::Int
The line number in the file containing the execution context.
-
True if the code is from C.
pointer::UInt64
Representation of the pointer to the execution context as returned by
backtrace
.
Base.StackTraces.StackTrace — Type
StackTrace
An alias for provided for convenience; returned by calls to stacktrace
.
Returns a stack trace in the form of a vector of StackFrame
s. (By default stacktrace doesn’t return C functions, but this can be enabled.) When called without specifying a trace, stacktrace
first calls backtrace
.
The following methods and types in Base.StackTraces
are not exported and need to be called e.g. as StackTraces.lookup(ptr)
.
— Function
Given a pointer to an execution context (usually generated by a call to backtrace
), looks up stack frame context information. Returns an array of frame information for all functions inlined at that point, innermost function first.
— Function
Takes a (a vector of StackFrames
) and a function name (a Symbol
) and removes the StackFrame
specified by the function name from the StackTrace
(also removing all frames above the specified function). Primarily used to remove StackTraces
functions from the StackTrace
prior to returning it.
remove_frames!(stack::StackTrace, m::Module)