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.

printfdebugging in combination with viz-nodelist (when appropriate, see for an example output http://tex.stackexchange.com/a/107398/243). Myprintfdebug functions are here: https://github.com/speedata/publisher/blob/develop/src/lua/common/sd-debug.lua, especiallyw()andprinttable(). – topskip Feb 23 '16 at 20:46