When a function is called, the application execution routine temporarily leaves the current function in order to execute the called function. Once it executes the called function, the execution routine returns to the original calling function and continues with the next line of code.
Note:
Main() represents the set of code statements from your script's main section. Think of it as a discrete function.
The following information can be gathered from the Stack Window when debugging has stopped:
|
|
Called Functions and Parameters. The called functions and parameters appear in the stack as written in the line or code. |
|
|
Called Function's Location. This can include a full path or it can be a reference line to a function declaration in the code |
|
|
The Main Calling Line of Code. This refers to the line number in which the calling statement occurred in the main() |
|
|
Parameter Types. Displays an icon, which identifies the parameter as a primitive or arrays type variable. |
|
|
Parameter Values. Shows the parameter values that were passed in the function call. Based on the stack, you can now see what transactions existed and you can use the Stack window to jump to the line where a function call occurred. This can be done by right clicking on the stack item and selecting Goto Source. |
|
|
|
|
|
Related Links: Reviewing Variables/Assigning Values to Variables Assigning a New Value to a Variable |
|
|
|