To clear the shell buffer, click the Clear Buffer button. To stop the interactive shell and keep the Shell tab open, click the square button, or use the associated key binding. To stop an interactive shell session and close the Shell tab, click the X button located in the upper-right corner of the Shell tab. When viewing a multi-line command or function, use the ‘Enter’ key to select the desired function and then use the arrow keys to cycle through the multiple lines within that function. Use the up and down arrow keys to cycle through the history of all entered commands. The code history consists of the ordered, numbered sets of commands entered in the lifetime of the shell, including interleaved output and error messages. See Customizing Fonts and Colors for more information. The Shell tab displays commands, variables, error messages, and all language syntax in the same scheme as specified in Edit > Preferences > Fonts and Colors. Once enough data is entered, Komodo executes the code and the standard language-dependent input prompt returns. This prompt indicates that the language interpreter requires more information before the code can run. When insufficient programming data is entered at the prompt, Komodo displays a language-dependent “more” prompt. Komodo can also detect when further data is required at the command prompt. To cancel or ignore the suggested autocomplete or calltip, press Esc. Use the up and down arrow keys to scroll through the various options on the screen. Use autocomplete and calltips to limit the amount of typing in each session. The Tcl interactive shell displays AutoComplete and CallTips when recognized code and commands are entered into the shell. Open multiple interactive shells to interact with various code snippets from a single language or use many shells to simultaneously explore a different language in each shell. The left pane performs debugging functions while the right pane contains the interactive shell. This splits the shell into a left and right pane. View debugging and code inspection functions by clicking the “Collapse/Expand Pane” button at the left side of the Bottom Pane. To toggle back to the Debug tab, click the Inspect button on the Debug Toolbar. On the active Debug tab, click the Inspect ( >) button on the Debug toolbar, or select Debug> Inspect.To start the shell from within a debug session: The interactive shell opens in a Shell tab in the Bottom Pane beside the Command Output and Breakpoint tabs. Alternatively, click the down arrow for the Shell button on the Workspace toolbar and select the desired language. Select Tools > Interactive Shell, and then select the desired language (Python, Tcl, Perl, or Ruby).To start the shell as a stand-alone tool: The interactive shell can be opened as a stand-alone tool or as a shell inside of a debugging session. On the Preferred Interactive Shell drop-down list, select the desired language (Python, Perl, Tcl).Select Tools > Interactive Shell > Configure.Other shells can still be accessed via Tools > Interactive Shell. Use the Preferences dialog box to specify the default language to use within an interactive shell. The interpreter evaluates the command, and then returns output and error text. Each time a command or multi-line string is entered into the Shell tab, that code is sent to the corresponding interpreter for evaluation. modifying existing variables using complex expressionsĮach Komodo interactive shell is associated with a corresponding interpreter and is thus language-specific.adding new code to the program being debugged (language-dependent). Other uses for an interactive shell within a debug session include: Depending on the language used, changes made in the shell remain in effect for the duration of the debug session. When the shell is closed from within a debug session, continue the debug process where you left off. When the interactive shell is started from within a debug session, use the shell to access all functions and code being debugged. The interactive shell supports history recall, AutoComplete and CallTips (Tcl only), and custom colors and fonts. Other uses for a stand-alone interactive shell include: When the interactive shell is started as a stand-alone tool, use the shell to help test modules and experiment with new languages or programs. The shell can be used as a stand-alone interactive tool or as a shell that interacts from within a debugging session. Statements, expressions, and code fragments can be entered independent of program files. Shells are used to directly communicate with the specified language interpreter. Komodo’s interactive shell implements individual language shells within Komodo.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |