executionContexts | |||||||
Type | property | ||||||
Dictionary | LCS | ||||||
Library | LiveCode Script | ||||||
Syntax |
| ||||||
Summary | Reports information on the current state of the running application. | ||||||
Introduced | 1.1 | ||||||
OS | mac, windows, linux, ios, android | ||||||
Platforms | desktop, server, mobile | ||||||
Example |
| ||||||
Values |
| ||||||
Related | Message: errorDialog | ||||||
Description | Use the executionContexts property to obtain information about the state of your program, particularly when debugging and error handling. The last line of the executionContexts represents the current context, i.e. the line of code last executed. A common use of the executionContexts is to obtain the name of the object and handler that called the current handler, this information is available as: line -2 of the executionContexts. Note: if the function call occurred in a behavior script, then the line number refers to the behavior script, not the target script. The executionContexts property is read-only and cannot be set. Important: The value of the executionContexts may be changed in future versions of LiveCode, it is not recommended to write code that depends on its contents. |