lua-users home
lua-l archive

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


>Is there a way for
>the host to know if a given line in a script actually generates code, so
>that we can accept only valid lines as breakpoint locations in the editor ?

No official way, sorry. Perhaps we should add one.
Right now, you can do this by invoking luac -l -p and searching for the line
in the output. Or you can get your hands dirty and read the lineinfo data
structure in Proto. See ldebug.c.
--lhf