Sign in Join
FPDoc Onlineexperiment

GetStackTrace function

In unit LazTracer

Retrieves backtrace information for code addresses.

Declaration

pascal
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

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.