Adobe 23101764 Scripting Guide - Page 32
Visual Basic debugging
UPC - 718659340025
View all Adobe 23101764 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 32 highlights
Scripting basics 2 Debugging and Error Handling 2.10.2 Visual Basic debugging In Visual Basic, you can stop your script at any point, or step through your script one line at a time. To stop your script at a particular line, select that line in your script and choose "Debug > Toggle Breakpoint". When you run the script, Visual Basic will stop at the breakpoint you have set. Choose "Debug > Step Into" (or press F8) to execute the next line of your script, or choose "Run > Start" (or press F5) to continue normal execution of the script. You can also observe the values of variables defined in your script using the "Watch" window - a very valuable tool for debugging your scripts. To view a variable in the "Watch" window, select the variable and choose "Debug > Quick Watch". Visual Basic displays the "Quick Watch" dialog box. Click the "Add" button. Visual Basic displays the "Watch" window. If you have closed the "Watch" window, you can display it again by choosing "View > Watch Window." Check your Visual Basic documentation for more information. Windows Scripting Host also provides debugging information. For more information on using Visual Basic with Photoshop, see the VisualBasic Reference Guide on the installation CD. Photoshop CS Scripting Guide 28