Movatterモバイル変換


[0]ホーム

URL:


GitHub

StackTraces

Base.StackTraces.StackFrameType
StackFrame

Stack information representing execution context, with the following fields:

  • func::Symbol

    The name of the function containing the execution context.

  • linfo::Union{Core.MethodInstance, Method, Module, Core.CodeInfo, Nothing}

    The MethodInstance or CodeInfo containing the execution context (if it could be found), or Module (for macro expansions)"

  • file::Symbol

    The path to the file containing the execution context.

  • line::Int

    The line number in the file containing the execution context.

  • from_c::Bool

    True if the code is from C.

  • inlined::Bool

    True if the code is from an inlined frame.

  • pointer::UInt64

    Representation of the pointer to the execution context as returned bybacktrace.

source
Base.StackTraces.StackTraceType
StackTrace

An alias forVector{StackFrame} provided for convenience; returned by calls tostacktrace.

source
Base.StackTraces.stacktraceFunction
stacktrace([trace::Vector{Ptr{Cvoid}},] [c_funcs::Bool=false]) -> StackTrace

Return a stack trace in the form of a vector ofStackFrames. (By default stacktrace doesn't return C functions, but this can be enabled.) When called without specifying a trace,stacktrace first callsbacktrace.

source

The following methods and types inBase.StackTraces are not exported and need to be called e.g. asStackTraces.lookup(ptr).

Base.StackTraces.lookupFunction
lookup(pointer::Ptr{Cvoid}) -> Vector{StackFrame}

Given a pointer to an execution context (usually generated by a call tobacktrace), looks up stack frame context information. Returns an array of frame information for all functions inlined at that point, innermost function first.

source
Base.StackTraces.remove_frames!Function
remove_frames!(stack::StackTrace, name::Symbol)

Takes aStackTrace (a vector ofStackFrames) and a function name (aSymbol) and removes theStackFrame specified by the function name from theStackTrace (also removing all frames above the specified function). Primarily used to removeStackTraces functions from theStackTrace prior to returning it.

source
remove_frames!(stack::StackTrace, m::Module)

Return theStackTrace with allStackFrames from the providedModule removed.

source

Settings


This document was generated withDocumenter.jl version 1.8.0 onWednesday 9 July 2025. Using Julia version 1.11.6.


[8]ページ先頭

©2009-2025 Movatter.jp