guile-user
[Top][All Lists]
Advanced

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

Re: What debugger breakpoint features would you like?


From: Neil Jerram
Subject: Re: What debugger breakpoint features would you like?
Date: 02 Feb 2002 12:03:11 +0000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

>>>>> "wawrzin" == wawrzin  <address@hidden> writes:

    wawrzin> How about setting conditions on breakpoints, or is this covered by
    wawrzin> `watch'?

Good idea.  It could be covered by `watch' in the case where you want
to test a condition without any reference to a source position or
procedure application, if the watch thunk was created like this:

  (let ((count 0))
    (lambda ()
      (if <condition>
          (set! count (+ count 1)))
      count))

(Which, BTW, is a good reason for watch's argument to be a thunk
rather than an expression.)

But more commonly, I guess you are thinking of `break at XXX if
<condition>'.  In theory, this is covered by the generalizations of
the breakpoint thunk that Thi and Keith suggested, but it might be
useful in practice to give specific support for conditions, and it's
certainly useful to keep them in mind as an important example.

Does that make sense?

        Neil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]