lua-users home
lua-l archive

Re[2]: specified stack level expression evaluation

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


hi,
is it possible to find out what environment is associated with
function at the specified call stack level?
> You can put the local variables in a table, and set it as the
> envinronment of the function that loadstring returns. If you also want
> the current global environment, you can set the global environment as 
> the __index metamethod of the table where you put the locals.
> There is an example of this technique in the RemDebug source code, check
> http://luaforge.net/projects/remdebug.
>> hello,
>> 
>> I am working with LUA debugging functions for the visual LUA debugger
>> and there is a question about watches implementation.
>> 
>> Is it possible to evaluate an expression using local variables and
>> upvalues from the specified stack level?
Yours respectfully,
Dmitriy Iassenev, iassenev@gsc-game.kiev.ua
 Phone (mobile): +380958392212
 ICQ: 72752187
 GSC Game World - Ukraine, Kyiv
 http://www.stalker-game.com, http://www.gsc-game.com

AltStyle によって変換されたページ (->オリジナル) /