diag stacktrace: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - " |game1= arma3 |version1= 2.06 |branch= dev " to " |game1= arma3 |version1= 2.06 ") |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.06 | |version1= 2.06 | ||
|descr= Returns an array containing the function name, line number, scope name and all local variables in form of a hashmap. | |descr= Returns an array containing the function name, line number, scope name and all local variables in form of a hashmap. |
Revision as of 18:28, 5 October 2021
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:
params ["_functionName", "_lineNumber", "_scopeName", "_variablesHashmap"];
Examples
- Example 1:
private _testvar = 1; private _testother = 2; call { _testvar = 3; if (_testvar == 3) then { _myVariable = 4; hint str diag_stacktrace; }; }; /* [ ["", 3, "", [["_this", []], ["_testother", 2], ["_testvar", 3]]], ["", 6, "", []], ["", 8, "", [["_myvariable", 4]]] ] */
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