The asciidoc(1)
--verbose
command-line option prints additional
information to stderr: files processed, filters processed, warnings,
system attribute evaluation.
A special attribute named trace enables the output of element-by-element diagnostic messages detailing output markup generation to stderr. The trace attribute can be set on the command-line or from within the document using Attribute Entries (the latter allows tracing to be confined to specific portions of the document).
In the case of inline substitutions:
<<<
and the after text by
a line containing >>>
.
Trace names.
<blockname> block close <blockname> block open <subs> dropped line (a line containing an undefined attribute reference). floating title footer header list close list entry close list entry open list item close list item open list label close list label open list open macro block (a block macro) name (man page NAME section) paragraph preamble close preamble open push blockname pop blockname section close section open: level <level> subs (all inline substitutions) table
Where:
<level>
is section level number 0…4.
<blockname>
is a delimited block name: comment, sidebar,
open, pass, listing, literal, quote, example.
<subs>
is an inline substitution type:
specialcharacters,quotes,specialwords, replacements,
attributes,macros,callouts, replacements2, replacements3.
Command-line examples:
Trace the entire document.
$ asciidoc -a trace mydoc.txt
Trace messages whose names start with quotes
or macros
:
$ asciidoc -a 'trace=quotes|macros' mydoc.txt
Print the first line of each trace message:
$ asciidoc -a trace mydoc.txt 2>&1 | grep ^TRACE:
Attribute Entry examples:
Begin printing all trace messages:
:trace:
Print only matched trace messages:
:trace: quotes|macros
Turn trace messages off:
:trace!: