Hi Norbert,
I've got exactly the same problem. For me it was a nightmare because I
was debugging a very complex lua program. The only solution I've found
was, like you, to put "print" instructions in critical points and some
"io.read('*l')" at some checkpoints but it was painful.
I was very disappointed by response of the Lua developers. They mostly
ignored my request of help. Some people in the mailing list give me
some answer like:
- there is wonderful debugger for window => but it is only for windows
and it is shareware (SIC!)
- there is Eclipse plugin but it seems to be broken.
I'm really surprised about how the Lua developers ignore this problem
together with some other problems like a complete/standard set of
library, an official supported binary distribution and a few other
things. IMHO these are some lacks that makes Lua not competitive with
Python concerning its usage as a stand-alone programming language.
The approach of the Lua developers is: we provide just the primitives
and the community will provide everything else. The problem is that
they don't seems to remark that this approach doesn't work! :-)