[Oberon] HOW2 debug ORP.Mod inside Oberon.

Paul Reed paulreed at paddedcell.com
Wed Jul 13 13:07:49 CEST 2016


Hi Srinivas,

> Is there a way to debug a program inside Oberon?

A quick way to get a simple trace with minimal interference to the
operation of the program on the real hardware (thereby hopefully
preventing "Heisenbugs"!) is to use the LED() predefined procedure. 
Fortunately Peter De Wachter has also kindly implemented the LEDs in the
emulator.

For an example, see how the garbage collector in Oberon.Mod uses the LEDs
to indicate its progress.  You will, in fact, need to comment out these
LED calls, recompile and reboot, before you do your own debugging this
way, since garbage collection is called in the normal course of operation.

HTH
Paul




More information about the Oberon mailing list