lua-users home
lua-l archive

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


> Interesting, I would like (besides fixing the current problem) to implement some debuging facilities in my project. Can you give some more details?

In specific, the lua_getinfo function in the API can get code fragments out

lua_getinfo(L, ">S", &ar);
printf("%s", ar.source);

There's also plenty of info in the manuals, and on the wiki.

http://www.lua.org/manual/5.1/manual.html#3.8
http://www.lua.org/manual/5.1/manual.html#5.9
http://lua-users.org/wiki/DebuggingAndTesting