Adobe 23101335 Scripting Guide - Page 27

stack trace view, JavaScript source view, window. Double-clicking a line in

Page 27 highlights

Scripting basics 2 Testing and troubleshooting Viewing Debug Information The Photoshop Script Debugger window provides three informational views that Figure 2.1 depicts. FIGURE 2.1 Script Debugger window Stack Trace view Debug Output view JavaScript Source view Resume (R) Script Breakpoints Display Pause (P) Stop (K) Step Over (S) Step Out (U) Step Into(T) The current stack trace appears in the upper-left pane of the script debugger window. This stack trace view displays the calling hierarchy at the time of the breakpoint. Double-clicking a line in this view changes the current scope, enabling you to inspect and modify scopespecific data. All debugging output appears in the upper-right pane of the script debugger window. The currently-executing JavaScript source appears in the lower pane of the script debugger window. Double-clicking a line in this JavaScript source view sets or clears an unconditional breakpoint on that line; that is, if a breakpoint is in effect for that line, double-clicking it clears the breakpoint, and vice-versa. Photoshop 7.0 Scripting Guide 27

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91

Photoshop 7.0 Scripting Guide
27
Scripting basics
Testing and troubleshooting
2
Viewing Debug Information
The Photoshop Script Debugger window provides three informational views that Figure 2.1
depicts.
F
IGURE
2.1
Script Debugger window
The current stack trace appears in the upper-left pane of the script debugger window. This
stack trace view
displays the calling hierarchy at the time of the breakpoint. Double-clicking
a line in this view changes the current scope, enabling you to inspect and modify scope-
specific data.
All debugging output appears in the upper-right pane of the script debugger window.
The currently-executing JavaScript source appears in the lower pane of the script debugger
window. Double-clicking a line in this
JavaScript source view
sets or clears an unconditional
breakpoint on that line; that is, if a breakpoint is in effect for that line, double-clicking it clears
the breakpoint, and vice-versa.
Stack Trace view
Debug Output view
JavaScript Source view
Resume (R)
Step Into(T)
Step Out (U)
Script Breakpoints Display
Pause (P)
Stop (K)
Step Over (S)