Kpathsea provides a number of runtime debugging options, detailed below by their names and corresponding numeric values. When the files you expect aren't being found, the thing to do is enable these options and examine the output.
You can set these with some runtime argument (e.g., `-d') to the program; in that case, you should use the numeric values described in the program's documentation (which, for Dvipsk and Xdvik, are different than those below). It's best to give the `-d' (or whatever) option first, for maximal output. Dvipsk and Xdvik have additional program-specific debugging options as well.
You can also set the environment variable KPATHSEA_DEBUG
; in this
case, you should use the numbers below. Also, if you run the program
under a debugger and set the variable kpathsea_debug
, Also use
the numbers below
In any case, by far the simplest value to use is `-1', which will turn on all debugging output. This is usually better than guessing which particular values will yield the output you need.
Debugging output always goes to standard error, so you can redirect it easily. For example, in Bourne-compatible shells:
dvips -d -1 ... 2>/tmp/debug
It is sometimes helpful to run the standalone Kpsewhich utility
(see section kpsewhich
: Standalone path searching), instead of the original program.
In any case, you can not use the names below; you must always use somebody's numbers. (Sorry.) To set more than one option, just sum the corresponding numbers.
KPSE_DEBUG_STAT (1)
ls-R
)), this should produce no output unless a
nonexistent file that must exist is searched for.
KPSE_DEBUG_HASH (2)
ls-R
)); font aliases (see section Fontmap); and config
file values (see section Config files). Useful when expected values are not
being found, e.g.., file searches are looking at the disk instead of
using `ls-R'.
KPSE_DEBUG_FOPEN (4)
KPSE_DEBUG_PATHS (8)
kpse_format_info_type
structure defined in
`tex-file.h'.
KPSE_DEBUG_EXPAND (16)
KPSE_DEBUG_SEARCH (32)
Debugging output from Kpathsea is always written to standard error, and
begins with the string `kdebug:'. (Except for hash table buckets,
which just start with the number, but you can only get that output
running under a debugger. See comments at the hash_summary_only
variable in `kpathsea/db.c'.)
Go to the first, previous, next, last section, table of contents.