>Is there any way to access upvalues using the debug API? I don't see >any obvious way to do this. An API function for getting upvalues does not exist (yet). Sorry. What do you need it for? --lhf