[Overview][Types][Procedures and functions][Index] Reference for unit 'LazTracer' (#lazutils)

StackTraceAsString

Gets a string with backtrace information for the specified call stack.

Declaration

Source position: laztracer.pas line 33

function StackTraceAsString(

  const AStack: TStackTracePointers;

  UseCache: Boolean

):string;

Arguments

AStack

  

Array of pointers to code addresses examined in the routine.

UseCache

  

Indicates if cached line information can be used in the routine.

Function result

String with backtrace information for the call stack.

Description

StackTraceAsString is a String function used to get backtrace information for the code addresses specified in AStack. The return value contains lines with the values from GetLineInfo for each of the code addresses.

UseCache indicates if cached line information from an internal AVL tree can be used in the routine. It is passed as an argument in calls to the GetLineInfo routine.

See also

GetLineInfo

  

Gets information about the specified code address.

TStackTracePointers

  

Array type used for Pointers to code addresses.


Version 4.0 Generated 2025-05-03 Home