[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: lua_call / lua_pcall inside a C Function - help!
- From: "Curt Carpenter" <curtc@...>
- Date: Thu, 4 Sep 2003 10:00:12 -0700
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