Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Right-click on the program in the Package Explorer and choose "Run as ...."•or "Debug
as ..."as shown. The program output will be displayed on the console. You can ‘re-
launch’ your program at any time by using the DEBUG / RUN menu (or button) on the
Design Studio menubar (or toolbar). The Debug/run menu on the Design Studio
toolbar is shown in the snapshot.
Note : If you do not have the Run/Debug as BASIC Program, this is certainly because
you are pointing on a Subroutine instead of a "PROGRAM".
Debugging allows you to run a program interactively while watching the source code
and the variables during the execution. To debug the program you need to define
breakpoints. By adding breakpoints in the source code you can specify where the
execution of the program should stop. To set breakpoints in your source code double
click on the small left margin in your source code editor. You can toggle breakpoint by
double clicking on it again. In the snapshot, we have added the breakpoint at Line 7. If
you have not defined any breakpoints and you use the Debug as … option, this will run
your program as normal and give the output on the console (output is sent to console
only if it is a console application).
F5 - Executes the currently selected line and goes to the next line in your program. If
the selected line is a method call, the debugger steps into the called code.
F6 - F6 steps over the call, i.e. it executes the method call (eg CALL SUBROUTINE.B)
without stepping into the method code in the debugger.
F7 - F7 steps out to the caller of the currently executed method. This finishes the
execution of the current method and returns to the caller of this method.
F8 - F8 tells the Eclipse debugger to resume the execution of the program code until is
reaches the next breakpoint. If there are no breakpoints, it completes the execution.
Comment code: You can add a comment line in the code using “Insert comment Line”
You can comment or uncomment a block of code using “Block comment” or “Block
uncomment”
GOSUB - In the code a GOSUB and a Region with the label provided in the dialog box
will be created.