5 Medic by Example
This section covers several small examples to help to learn the syntax of the Medic language and the use of the Medic debugging tool.
Each example contains a source program and a medic program. Assuming that the source program, src.rkt, is the entry
point of the program, that the medic program is src-medic.rkt, and that the source program, medic program, and program-starting
script are stored in the same
directory, we can start debugging by the following program-starting script:
We can also run program-starting scripts in the console window of the DrRacket programming environment. To best locate
the files, complete paths of programs—depending on the stored location—should be supplied.
The following are the demos: