spade-0.1.0.3: docs/ide.md
### IDE Reference
#### Starting the IDE
Pass a file name (existing or new) to load the program in the IDE.
For example "spade myprog.spd" loads the program from file "myprog.spd" into the
IDE. If such a file does not exist, then it is created upon saving the program.
#### Running a program without starting IDE
Use the "spade run" command to just run the interpreter on the spade program.
For example 'spade run myprog.spd' just runs the "myprog.spd" spade program.
##### Menu
Menus are activated using Alt key combinations. 'Alt + f' opens file menu, 'Alt + r' opens run menu etc.
Pressing Esc key closes open menus.
##### Windows
Besides the editor window, there is the log window and the watch window. Log window displays error
and debug information. Contents of the log window can be cleared by the "Clear log" menu item.
The watch window appears when stepping through the program, and displays the contents of the current
functions scope.
##### Debugging
A program can be started in step mode by pressing 'F8' or selecting the step menu item. By pressing
the 'F8' key it is possible to step through the program, expression by expression. The currently evaluated
line is indicated by a '>' in the left margin, and the currently evaluated expression is indicated by
underlining it.
A program can call the `debug()` function at any point to break into the debugger.