Adobe 27510753 Scripting Guide - Page 55
Tracking data, Boolean, Number, String, Object, Invalid object - photoshop
![]() |
UPC - 718659445294
View all Adobe 27510753 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 55 highlights
Adobe InDesign CS2 Scripting Guide Using ExtendScript Tools and Features 47 Tracking data The Data Browser tab is your window into the JavaScript engine. It displays all live data defined in the current context, as a list of variables with their current values. If execution has stopped at a breakpoint, it shows variables that have been defined using var in the current function, and the function arguments. To show variables defined in the global or calling scope, use the Call Stack to change the context (see "The call stack"). You can use the Data Browser to examine and set variable values. l Click a variable name to show its current value in the edit field at the top of the tab. l To change the value, enter a new value and press enter. If a variable is read-only, the edit field is disabled. Display or modify selected variable's value Object opened to show properties The flyout menu for this tab lets you control the amount of data displayed: l Show Global Functions toggles the display of all global function definitions. l Show Object Methods toggles the display of all functions that are attached to objects. Most often, the interesting data in an object are its callable methods. l Show JavaScript Language Elements toggles the display of all data that is part of the JavaScript language standard, such as the Array constructor or the Math object. An interesting property is the _ _ proto _ _ property, which reveals the JavaScript object prototype chain. Each variable has a small icon that indicates the data type. An invalid object is a reference to an object that has been deleted. If a variable is undefined, it does not have an icon. null Boolean Number String Object Invalid object You can inspect an object's content by clicking its icon. The list expands to show the object's properties (and methods, if Show Object Methods is enabled); the triangle points down to indicate that the object is open. Note: In Photoshop® CS2, the Data Browser pane is populated only during the debugging of a JavaScript program within Photoshop.
![](/manual_guide/products/adobe-27510753-scripting-guide-5f6265c/55.png)