# Scripting Window

The Scripting Window is made up of an area for entering code and five pages used for debugging scripts: Messages, Breakpoints, Watches, Bookmarks, and Output.
Window | Description
Code | Enter your scripting code here. The left-hand "gutter" displays the code line numbers. Right-mouse clicking on the Code window will display a context-menu with menu items for editing the code.
Messages | All error messages (whether generated by the script compiler or at runtime by erroneous code) are displayed in a list in the Messages page. If an error occurs you can double-click the Messages entry and the cursor will move to the corresponding line in the Code window. Right-mouse clicking on the Messages page will display a context-menu that allows you to go to the current source line or clear all messages.
Breakpoints | Breakpoints pause script execution at a specified point in the code. When a breakpoint occurs you can use the Watches and File | Evaluate... menu item to view the state of variables in the script. Right-mouse clicking on the Breakpoints page will display a context-menu that allows you to enable and disable breakpoints. Note: You can also set a Breakpoint by clicking the 'Gutter' at the very left of the Code window.
Watches | Watches let you track the values of variables or expressions as you step over or trace into your code. As you step through your script, the value of the watch expression changes if your code updates any of the variables contained in the watch expression. Right-mouse clicking on the Watches page will display a context-menu that allows you to add, edit, delete, enable, and disable watches.
Bookmarks | You can mark a location in your code with a bookmark and jump directly to it from anywhere in the script. You can set up to ten bookmarks. Bookmarks are preserved when you save the file and are available when you reopen the file. Right-mouse clicking on the Bookmarks page will display a context-menu that allows you to go to the selected source line or clear all bookmarks.
Output | The Output page is provided for debugging Scripts. In code you can refer to it using the Output object, which will allow you to add to it and save its contents to file.