%GetCallChain function
...
Function | The function gets back complete series of callings (CALL actions) that caused its execution. | |||||||
Declaration |
| |||||||
Parameters | None. | |||||||
Example |
The example shows the return value of the function (in the procedure Procx of the script E.C3) when calling remote procedures from the scripts E.C1, E.C2 |
and E.C3. Execution of the procedures begins in the initialization part of the script E.C1. ;******************* E.C1 ******************* The value of local variable _callChain of procedure Procx in script E.C3. Procx: 4 Each line in the value of variable _callChain (except for the first one) identifies the line in ESL script with CALL action. For example a dump: represents |
line 8 in the script of the object of name E.C3. Line 8 is in the context of procedure Proc3. |
The script was performed on process SELF.EVH. HOBJ of object E.C3 is 24791 and the unique identifier of the running script is 1438 (this value is generated at each start of the arbitrary script and it is univocal within the process which interprets the scripts). |
The mentioned line contains CALL Procx action calling the procedure Procx within the script. |
rows. This way allows to find out following information from the value of variable _callChain (described bottom-up): |
line 7 and there is RPC procedure call Proc2 on |
line 3 in the script E.C2 within the same process of SELF.EVH. In the procedure (Proc2) there is RPC procedure call Proc3 on |
line 3 in the script E.C3 within the same process SELF.EVH. |
called Procx on |
line 8 in the script E.C3 and the call of function GetCallChain was performed on |
line 4. |
...
Info | ||
---|---|---|
| ||
...