lua-users home
lua-l archive

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


Thanks.

I'll give a try to the second solution, since our editor is an embedded
ActiveX control, and I'd rather not depend on an external program
invocation.


> -----Original Message-----
> From: Luiz Henrique de Figueiredo [mailto:lhf@tecgraf.puc-rio.br]
> Sent: mercredi 6 novembre 2002 16:11
> To: Multiple recipients of list
> Subject: Re: debugger and breakpoints
> 
> 
> >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
>