
Photoshop 7.0 Scripting Guide
28
Scripting basics
Testing and troubleshooting
2
Controlling Code Execution in the Script Debugger Window
This section describes the buttons that control the execution of code when the Script Debugger
window is active. Most of these buttons also provide a keyboard shortcut available as a
Ctrl-
key combination on Windows platforms or a
Cmd-
key combination on Mac OS platforms.
Resume
Cmd-R
(Mac OS)
Ctrl-R
(Windows)
Resume execution of the script with the script debugger window open. When the script
terminates, Photoshop closes the script debugger window automatically. Closing the debugger
window manually also causes script execution to resume. This button is enabled when script
execution is paused or stopped.
Pause
Cmd-P
(Mac OS)
Ctrl-P
(Windows)
Halt the currently-executing script temporarily and reactivate the script debugger window.
This button is enabled when a script is running.
Stop
Cmd-K
(Mac OS)
Ctrl-K
(Windows)
Stop execution of the script and generate a runtime error. This button is enabled when a script
is running.
Step Into
Ctrl-T
(Mac OS)
Cmd-T
)
(Windows)
Halt after executing a single JavaScript statement in the script or after executing a single
statement in any JavaScript function the script calls.
Step Over
Ctrl-S
(Mac OS)
Cmd-S
(Windows)
Halt after executing a single JavaScript statement in the script; if the statement calls a
JavaScript function, execute the function in its entirety before stopping.
Step Out
Ctrl-U
(Mac OS)
Cmd-U
(Windows)
When the debugger is paused within the body of a JavaScript function, clicking this button
resumes script execution until the function returns. When paused outside the body of a
function, clicking this button resumes script execution until the script terminates.