EDOBE XDOM TAKE 6 IR - PRODUCTSHEET Especificações Página 33

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 304
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 32
CHAPTER 2: The ExtendScript Toolkit Debugging in the Toolkit 33
Evaluation in help tips
If you let your mouse pointer rest over a variable or function in a document window, the result of
evaluating that variable or function is displayed as a help tip. When you are not debugging the program,
this is helpful only if the variables and functions are already known to the JavaScript engine. During
debugging, however, this is an extremely useful way to display the current value of a variable, along with
its current data type.
Tracking data
The Data Browser panel 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” on page 34).
You can use the Data Browser to examine and set variable values.
X Click a variable name to show its current value in the edit field at the top of the panel.
X To change the value, enter a new value and press ENTER. If a variable is Read only, the edit field is
disabled.
The flyout menu for this panel lets you control the amount of data displayed:
X Undefined Variables toggles the display of variables whose value is undefined (as opposed to null).
X Functions toggles the display of all functions that are attached to objects. Most often, the interesting
data in an object are its callable methods.
X Core JavaScript Elements toggles the display of all data that is part of the JavaScript language
standard, such as the Array constructor or the Math object.
X Prototype Elements toggles the display of the JavaScript object prototype chain.
Each variable has a small icon that indicates the data type. An invalid object (that is, a reference to an
object that has been deleted) shows the object icon crossed out in red. An undefined value has no icon.
Examine or modify
selected variables value
Object opened to
show properties
flyout
menu
Vista de página 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 303 304

Comentários a estes Manuais

Sem comentários