Lard Execution Environment

Sourceview module

The sourceview module provides source code debugging facilities for LARD programs. Before using the sourceview facility your program must have been compiled using the -g flag.

Sourceview displays two windows: one in which the source program is displayed and another showing each thread in the program:

Note: when the sourceview window is first displayed the main source frame is empty making the parent window smaller.

Window menu

Buffers menu

This menu displays a list of source files and allows you to switch between them.

Breakpoints menu

Add or delete breakpoints at the line containing the insertion point (i.e. the point where you last clicked).

Buttonbar

Source window

Shows the source code. The current line for each thread is shown by the thread number and an arrow. The current line for the current thread (i.e. the line that will be executed when Step is pressed) is shown with a red arrow. Any breakpoints are shown with an anchor symbol.

The threads window lists all the threads active in the simulation with their thread numbers (coresponding to the numbers shown in the source view arrows) and any names specified with "is" statements. Each thread has a button controlling whether it is traced or not. The single step facility only steps to other threads that are enabled in the thread window.

Newly created threads inherit the traced status of their parent.

Window menu

Trace menu