### 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 from the IDE. #### 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 without loading it in the IDE. ##### 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 function's 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 an underline. A program can call the `debug()` function at any point to break into the debugger. ##### Shortcuts F1 -> Help F6 -> Save F8 -> Run program in single step mode F5 -> Run program F9 -> Kill program execution and return to IDE Esc -> Go back to previous help page