dprint is a debugging print tool
$ luarocks install dprint
The simplest debugging information logger.
Disabled by default, with ability to enable debug mode at any time.
When debug mode is enabled, data is simply output to StdOut.
Displays the source file and line number where the call is coming from.
Allows to flexibly and easily change the depth of the output trace