The Plugin Editor

The Plugin Editor is not just an editor.  It is also a debugger.  It allows you to step through your code one line at a time, and inspect the value of variables.  It also allows you to set breakpoints (see Debugging for more information about breakpoints), and to step into, or out of functions.  You can open the Plugin Editor from the main Plugins Window, by clicking the More >> button, selecting a plugin and clicking Edit.   If you click New, the Plugin Editor will be opened to allow you to enter the code for the new plugin.  You can also open the Plugin Editor by clicking on any plugin in the list using the right mouse button, and then choose 'Edit...' from the menu that appears.

Panes

The Plugin Editor window is split into three areas: the Text Pane (top), the Output Pane (bottom-left), and the Variable Pane (bottom-right). The Text Pane is where the actual plugin 'script' (also called 'code') is entered. The Output Pane will display information about any syntax errors with your code. If your script uses the Lua standard 'print' command (sometimes useful for debugging), output from this command is also displayed in the Output Pane. The Variable Pane in the bottom right will show the currently available variables in the plugin, when the debugger is active and the script is at a breakpoint.

Toolbar Commands

Menu Commands