Home

News

International

Screen Shots

Documentation

Download

Build

License

Credits

Contact

SourceForge Project

Tintware Documentation : Tint Programming Language : Tint Tutorial : Tracing Tint

Tracing Tint

Tint evaluation can be traced in both tci and Tint Emacs. Tracing can be used to print a log of expressions (things in #( )) that get evaluated. Tracing can be an selective or as broad as desired. Dictionaries, arrays, procedures, primitives, as well as everything can be specified for tracing. If an object, say a dictionary, is traced, everything within that object is also traced. For example, in Tint Emacs, setting a trace on emacs will log most everything going on in inside the editor.

With tci, use tci.trace and tci.no-trace to turn on and off tracing of a specified object. For example, the following will turn on tracing of most of the Tint code used by tci.

#(tci.trace,tci)#(tci.trace,tint)

With Tint Emacs, the command trace will prompt for an object to trace. Calling trace with a numeric argument will turn off tracing for an object. Trace information gets logged to a buffer called *trace*. The following two lines turn on tracing for the dictionary emacs and then turn if off. Type the key sequences exactly as shown.

Alt-x t r a c e Enter e m a c s Enter
Ctrl-u Alt-x t r a c e Enter e m a c s Enter