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

GetStackTrace

Retrieves backtrace information for code addresses.

Declaration

Source position: laztracer.pas line 31

function GetStackTrace(

  UseCache: Boolean

):string;

Arguments

UseCache

  

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

Function result

String with information about backtrace addresses.

Description

GetStackTrace is a String function used to retrieve backtrace information for code addresses in a string format.

Calls GetLineInfo to get information for the code addresses, using the value in UseCache as an argument. UseCache indicates if cached line information from an internal AVL tree can be used in the routine. When UseCache contains False, the BackTraceStrFunc in lclproc.pas initialization section is called to get the line information for each of the backtrace addresses.

See also

GetLineInfo

  

Gets information about the specified code address.


Version 4.0 Generated 2025-05-03 Home