I am writing some macros for general debugging purposes (See Yiannis' question). I am basically expanding a given input step by step, and printing the result to the terminal and log. In order for this to happen step by step, I am using \show, which interrupts TeX and gives the user the opportunity to follow what is going on.
However, \show is quite verbose: at least six lines, most of which are useless. Can this number be reduced? (I don't mind dropping \show for a better alternative.)
Namely,
\documentclass{minimal}
\begin{document}
\errorcontextlines=-1\relax % attempt to have less lines
\def\deeper{\show\deepest...}
\def\deep{A \deeper macro}
\deep
\end{document}
writes the following to the terminal:
> \deepest=undefined.
\deeper ->\show \deepest
...
l.6 \deep
?