Writing LaTeX macros has always been difficult, and it seems like writing a major package can only be accomplished by a Real Programmer.
Fortunately, LuaTeX is on its way, and writing Lua macros is arguably more human-friendly than programming in TeX. Still, it could get even friendlier if there was a way to couple LuaTeX with a remote debugger.
Therefore I ask: Is there a way to remotely debug LuaLaTeX macros?
This question is essentially a rewording of the post Debugging Lua in LuaLatex with LDT. The post was closed since it didn't really contain a question. An almost-complete solution was proposed in the post, but there were some issues, and I would like to know if these issues can be resolved.
printf
debugging in combination with viz-nodelist (when appropriate, see for an example output tex.stackexchange.com/a/107398/243). Myprintf
debug functions are here: github.com/speedata/publisher/blob/develop/src/lua/common/…, especiallyw()
andprinttable()
.