lua-users home
lua-l archive

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


> Isn't the debugging information implicit now? I certainly get line numbers
> when I have errors in my compiled code.

Line numbers are kept in the `lineinfo' array in structure Proto. This
array relates pc indices to line numbers (in a coded way to save space).
When there is an error (or a call to debug information), Lua gets
the current pc of the function and search this array for the
corresponding line number.

-- Roberto