<doc>
  <legacy_id>3501</legacy_id>
  <name>executionContexts</name>
  <type>property</type>
  <syntax>
    <example>get the executionContexts</example>
  </syntax>
  <library></library>
  <objects>
    <global/>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
  </classification>
  <references>
    <message tag="errorDialog">errorDialog Message</message>
  </references>
  <history>
    <introduced version="1.1">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary>Reports information on the current state of the running application.</summary>
  <examples>
    <example>on errorDialog</p><p>  local tHandler</p><p>  put item -2 of line -2 of the executionContexts into tHandler</p><p>  answer "An error occurred in the handler: " &amp; tHandler</p><p>end errorDialog</example>
  </examples>
  <description>
    <p>Use the <b>executionContexts</b> property to obtain information about the state of your program, particularly when debugging and error handling.</p><p/><p><b>Value:</b></p><p>The <b>executionContexts</b> is similar to a call stack, it consists of a list of contexts, one per line, with the most recent context at the end.</p><p/><p>Each context is a string of the form:</p><p>&lt;object-long-id&gt;,&lt;handler-name&gt;,&lt;line-number&gt;</p><p/><p><b>Important</b>: The value of the <b>executionContexts</b> may be changed in future versions of LiveCode, it is not recommended to write code that depends on its contents.</p><p/><p><b>Comments:</b></p><p>The last line of the <b>executionContexts</b> represents the current context, i.e. the line of code last executed. </p><p/><p>A common use of the <b>executionContexts</b> is to obtain the name of the object and handler that called the current handler, this information is available as:<i> line -2 of the executionContexts</i>.</p><p/><p>The <b>executionContexts</b> property is read-only and cannot be set.</p><p/>
  </description>
</doc>