WebCLIPS Integrated Development Environment Help
- Command-Line Window
- Menu Items
- Interactive Debugger
- Download the ZIP file, extract and run SETUP.EXE to install
command-line window and the interactive debugger. The command-line window has built-in extensions to the standard version of CLIPS that include invoking an editor for your programs and redirecting output to a browser.
The IDE makes use of the CLIPS DLL. For those developers who have written their own User-Defined functions, the IDE provides an interface for those functions.
The (run-browser [n]) command works just like the CLIPS (run [n]) command except that the
output will be appear in the application associated with the
(usually a web-browser)
The (edit FileName) command invokes the default program (Wordpad on my computer)
to edit programs from the command-line. This involves changing the default program for the
extension you are using for your CLIPS programs (usually
refer to Windows Help on how to do this.
The Output window is a read-only textbox. This means you can highlight some text
(hold down the Left-Mouse button and drag) and copy the selected text to the Clipboard
(Ctrl-C or Right-Click and choose Copy OR Choose
Edit | Copy)
from the menu.
Reflect Command- This option tells the editor whether or not to echo the current command in the Output window. This options is saved between sessions in the file
Clear Output on (clear)- This option determines if the Output window is to be erased when a CLIPS (clear) command is entered. This options is saved between sessions in the file
- Show Debug Window - This menu item is disabled until there is at least one rule on the Agenda. For more information, please see the section labelled Interactive Debugger.
Copy- This menu item copies the highlighted text to the Clipboard
Select All- This menu item selects ALL of the text in the Output window. Please note this *only* selects the text, you must still Copy (see above) the text the to the Clipboard.
How to use- This document
CLIPS Help- This menu item displays the CLIPS6 Help File. The location of this file is contained in
IDECLIPS.INI. The file location parameter is in the
[CLIPS]section, entry named
About- Show a splash screen with author's email address.
- UpArrow - redisplays the last command entered.
- DownArrow - shows the previous command.
- Enter - submits the command to CLIPS.
- Ctrl-C - Copies the selected text to the Clipboard.
- Ctrl-A - Selects ALL of the text in the Output window.
- Facts Window - This window contains the facts that caused the current rule to fire.
- Rules Window - This window contains all of the available rules in
(ppdefrule ...)' form. All rules that have breakpoints set on them will be shown in bold red. The current rule firing will be show in blue and have its name shown in the frame around the Rules Window. If the current rule has a breakpoint set on it, it will appear in bold blue.
- Menu Items
Set Firing - This menu item represents how many rules will fire
the next time the program is 'stepped'. The program can be 'stepped' by clicking
the step button (it contains a number representing the number of rules to fire),
F8or by the menu item
Debug | Step. A text box will appear on the right side of the toolbar. Fill in the number of rules to fire and press
- - This menu item represents how many rules will fire the next time the program is 'stepped'. The program can be 'stepped' by clicking the step button (it contains a number representing the number of rules to fire), pressing
Facts- shows all of the facts. Equivalent to a '
Rules- shows all of the rules. Equivalent to a '
(ppdefrule ...)' command for all of the rules available to the program.
Agenda- shows the current contents of the Agenda. Equivalent to a '
stdout- shows ALL of the content written to stdout (i.e.
(printout t ...)).
wtrace- shows ALL of the content written to the wtrace route (i.e.
wdisplay- shows ALL of the content written to the wdisplay route.
wdialog- shows ALL of the content written to the wdialog route.
wclips- shows ALL of the content written to the wclips route.
werror- shows ALL of the content written to the werror route.
wwarning- shows ALL of the content written to the wwarning route.
Go- runs the program. Equivalent to a '
Step- runs the program with a limit. Equivalent to a '
(run [n])' command, where
[n]is the number of rules to fire. This is set in the
Step | Set Firingmenu item.
Run to Cursor- this is the equivalent of setting a breakpoint, issuing a '
(run)' command and resetting the breakpoint. Please note that if program execution gets interrupted by another breakpoint, the breakpoint REMAINS SET on this rule.
Toggle Breakpoint- sets (or resets) a breakpoint for a rule. Put the cursor on the line that contains '
(defrule ...' for the desired rule. If the cursor is not on a valid
(defrule ...' statement, an error message will appear asking you to do so.
Clear All Breakpoints- simply clears all breakpoints currently set.