I am trying to debug my code and I keep running into the same problem so I would like to see what the command that causes the problem is giving to the compiler.
I have looked for this and I can't seem to find someone who asked this question.
So is there a command or environment that would treat the result of a function as verbatim
like this? \verboutput{\mycommand}
\show\mycommandwould write the definition of\mycommandto the terminal and the log. In LaTeX it would be better to use\ShowCommand\mycommand, because it also handles the different kinds of protected commands. See also: https://tex.stackexchange.com/questions/4327/where-do-i-find-out-how-a-command-environment-is-defined – cabohah May 24 '23 at 08:52\texttt{\mycommand},\typeout{\mycommand}or\showtokens\expandafter{\mycommand}or\typeout{\meaning\mycommand}etc. depends on what you mean. See also tools - How to best debug LaTeX? - TeX - LaTeX Stack Exchange -- although it's true that a debugging guide is kind of missing. – user202729 May 28 '23 at 10:22