lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Probably there is no global "add". There's no global "add", unless you
think you added it.

I find it useful to examine the state of the Lua stack while debugging.
Assuming you're using a debugger that lets you evaluate functions while
broke, you can have a static function to dump the Lua stack and call it
to verify your expectations step by step. Of course, even if your
debugger does not support function eval, you can just instrument your
code to dump the stack at interesting locations accordingly.

Curt