Getting Started with the Sample Project
Opening the Sample Project and Files
Select Project > Sample Project. The Sample Project and its associated files will display on the Places sidebar.
To open a sample program, double-click the file name on the Places sidebar. The contents of the file will display in the Editor Pane.
Editing a Sample Program
Komodo includes sample programs written in Perl, PHP, Python, Ruby, Tcl, and XSLT. Each program is annotated with comments and exercises that describe Komodo’s language-specific features. Open the sample programs for languages that interest you, and read the comments to explore Komodo’s editing features.
Debugging a Sample Program
Komodo provides debugging support for Perl, Python, PHP, Ruby, Tcl, and XSLT. Komodo works with the core language distribution for Perl, Python, PHP and Ruby to provide interpreter support. XSLT, on the other hand, is entirely self-contained. To debug the sample files for Perl, Python, PHP, Ruby and Tcl, you must configure the location of the language interpreter. See Configuring the Perl Debugger, Configuring the Python Debugger, Debugging PHP Configuring the Ruby Debugger, or Configuring the Tcl Debugger, for instructions. Then open the sample file for the desired language, and view the comments in the “Debugging” section. General debugging functionality is discussed below.
- Breakpoints: In the sample program, click on the gray margin to the immediate left of the Editor Pane. A green circle will appear, indicating that a breakpoint has been set. When you run the debugger, program processing will stop at lines where breakpoints have been set.
- Start / Step Over / Step In: To start debugging, click the “Go” button on the Debug Toolbar. When debugging begins, the Bottom Pane will be displayed beneath the Editor Pane in the Komodo workspace. The program will run until a breakpoint is encountered. When program execution pauses at a breakpoint, click “Step In” to move through the program in single line increments, or “Step Over” to execute the entire function (as applicable), or “Step Out” to execute the remainder of a function (as applicable).
- Debug Tab: The tab labeled Debug: <filename> is displayed when debugging begins. In addition to the debug output, the Debug tab displays the call stack, variables, and variable values.