Next: Debug Output, Previous: Trace, Up: Debugging
The -d option to m4
(see Invoking m4) controls the
amount of details presented, when using the macros described in the
preceding sections.
The flags following the option can be one or more of the following:
a
traceon
.
c
e
traceon
.
f
i
l
p
q
t
m4
.
x
V
If no flags are specified with the -d option, the default is `aeq'. The examples throughout this manual assume the default flags.
There is a builtin macro debugmode
, which allows on-the-fly control of
the debugging output format:
The argument flags should be a subset of the letters listed above. As special cases, if the argument starts with a `+', the flags are added to the current debug flags, and if it starts with a `-', they are removed. If no argument is present, all debugging flags are cleared (as if no -d was given), and with an empty argument the flags are reset to the default of `aeq'.
The expansion of
debugmode
is void.
define(`foo', `FOO') => traceon(`foo') => debugmode() => foo error-->m4trace: -1- foo -> `FOO' =>FOO debugmode => foo error-->m4trace: -1- foo =>FOO debugmode(`+l') => foo error-->m4trace:8: -1- foo =>FOO