[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [Announce] Second Alpha release of a Lua debugger
- From: Steve Heller <steveheller@...>
- Date: Mon, 16 Apr 2007 07:41:07 -0700 (PDT)
--- Rici Lake <email@example.com> wrote:
> Steve Heller wrote:
> > --- Rici Lake <firstname.lastname@example.org> wrote:
> >>> 2. How do I actually use breakpoints? I don't
> >> to be able to get
> >>> them to do anything. I can set them, but then if
> >> do a "c" to
> >>> continue, they seem to be ignored. Also, if I
> >> "ldb()" to invoke
> >>> the debugger, then try to do "s" or "n", I get a
> >> message "Not inside
> >>> breakpoint". Do you have an example of how to
> >> them?
> >> Yeah, I should have explained that better. The
> >> documentation lags the
> >> code a bit, but I'm trying to finish it all up in
> >> spare time this
> >> week.
> >> Basically, the easiest way to use breakpoints is
> >> start the program
> >> you're debugging with the ldb script included in
> >> distro. You just
> >> do:
> >> ldb myprog.lua #arguments if any
> > Maybe I'm just dense, but it doesn't look as
> > arguments are being passed to "myprog.lua". I
> > at the code but didn't see exactly how that works.
> > I need a literal "#" in the line before the
> > or what?
> They should be being passed in the 'arg' global, as
> I had forgotten that the Lua standalone passes
> arguments to
> the chunk as well, available in ...
> I've added this feature to ldb-break in CVS.
Thanks. I'll download the latest version.
I also have another question: exactly how do I set a
breakpoint in a file? I've tried this:
and the same with the / changed to \. I don't get an
error message, but I also don't get a breakpoint at
> It does not yet handle lua-interpreter style option
> (-i -l etc.), and it would be really nice if it used
> to do i/o. But it doesn't, yet :)