Debian Codegraph @

texmf-dist/doc/otherformats/lollipop/manual/trace.tex

raw
1 % trace.tex copyright 1992 Victor Eijkhout
2 % copyright 2014--2016 Vafa Khalighi
3 %
4 %
5 % This program is free software: you can redistribute it and/or modify
6 % it under the terms of the GNU General Public License as published by
7 % the Free Software Foundation, either version 3 of the License, or
8 % (at your option) any later version.
9 %
10 % This program is distributed in the hope that it will be useful,
11 % but WITHOUT ANY WARRANTY; without even the implied warranty of
12 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 % GNU General Public License for more details.
14 %
15 % You should have received a copy of the GNU General Public License
16 % along with this program. If not, see <http://www.gnu.org/licenses/>.
17 %
18 %
19 \Chapter[chap:tracing] Tracing
20
21 \Section Do you really want to see this?
22
23 You can get glimpses of Lollipop's internal workings by enabling some
24 of the internal traces. The extreme positions
25 \Ver> \Trace:yes<Rev
26 and
27 \Ver> \Trace:no<Rev
28 cause all trace information and no trace at all respectively to be
29 generated. You may find this trace interesting, or it may dumbfound you.
30 Of course, if your name is Victor you find it pretty useful.
31
32 The following traces are available:
33 \Ver> \NewTrace:def % definition of user constructs
34 \NewTrace:ref % cross references
35 \NewTrace:ext % external files
36 \NewTrace:doc % document structure
37 \NewTrace:font % font loading
38 \NewTrace:out % output routine
39 \NewTrace:indent % indentation control
40 \NewTrace:gen % general tools<Rev
41
42 \ImpNote
43 Trace messages are generated by calls to
44 \Ver> \Tmessage[type]{text}<Rev
45 Setting
46 \Ver> \Trace:no<Rev
47 defines \cs{Tmessage} to discard its arguments. This is the most
48 efficient way of generating no trace information.
49
50 Tracing is controlled by a global parameter \cs{trace@all}.
51 A value of~$-1$
52 disables all tracing; $+1$~corresponds to all tracing on; $0$~gives
53 selective tracing. In the third case a call
54 \Ver> \Trace:xyz<Rev
55 set \ver>\trace:xyz> positive so that only
56 \ver>\Tmessage[xyz]{...}> calls will
57 produce output. Enabling a selective trace sets \cs{trace@all} to zero, in
58 case it was~$-1$.
59 \ImpNoteStop
60
61 \endinput