7.2 Debugging Oolong Programs

The .source and .line directives are used primarily when you're using Oolong as an intermediate stage between a program in some other language and the class file. If you're writing Oolong by hand, the Oolong compiler's -n directive will cause .source and .line directives to be generated automatically. Line debugging information will be generated for each instruction, naming the source line of that instruction in the Oolong source file. The .var directive can be used as before to assign names to local variables.

If you provide debugging information, you can use existing debuggers to debug Oolong programs. For example, Figure 7.1 shows Symantec Café version 1.8 debugging an Oolong program.

Figure 7.1. Symantec Café debugging an Oolong program


Programming for the Java Virtual Machine
Programming for the Javaв„ў Virtual Machine
ISBN: 0201309726
EAN: 2147483647
Year: 1998
Pages: 158
Authors: Joshua Engel

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net