[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: comments, line numbers and storing a file in a single
- From: "W. C. Bubel" <inmatarian@...>
- Date: Thu, 13 Dec 2007 17:06:11 -0500
> 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