diag_stacktrace

From Bohemia Interactive Community
Revision as of 09:22, 25 July 2021 by R3vo (talk | contribs) (Created page with "{{RV|type=command |game1= arma3 |version1= 2.06 |branch= dev |descr= Returns an array containing the function name, line number, scope name and all local variables in form...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.06.

Description

Description:
Returns an array containing the function name, line number, scope name and all local variables in form of a hashmap.
Groups:
Diagnostic

Syntax

Syntax:
diag_stacktrace
Return Value:
Array - in format

Examples

Example 1:
private _testvar = 1; private _testother = 2; call { _testvar = 3; if (_testvar == 3) then { _myVariable = 4; diag_stacktrace; }; }; Template:ccml

Additional Information

See also:
diag_dumpCalltraceToLog

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note