unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-user@gnu.org
Subject: Re: Anyone relying on "break-at" breakpoints?
Date: Mon, 29 Oct 2007 09:45:14 +0100	[thread overview]
Message-ID: <87fxzuux5x.fsf@chbouib.org> (raw)
In-Reply-To: 87y7dngcfb.fsf@ossau.uklinux.net

Hi,

Neil Jerram <neil@ossau.uklinux.net> writes:

> Well there has to be some directly executed code somewhere, or else
> nothing will happen.  But I agree that it might be reasonable to
> expect any lexically non-trivial block of code to be defined as a
> procedure first.

Sure.  Or the first invocation could be passed as a parameter to
`guile', as in `scripts/PROGRAM'.

> Well I haven't tried this at all yet, but I'm wondering about a form
> of specification like
>
> (break-in <proc-name> '(let if string-append))
>
> - which would mean to break at the start of a string-append call that
> is lexically within an (if ...), which is itself lexically within a
> (let ...).
>
> Something like this might work for internal definitions, too.

Yeah, and I think it wouldn't work either with forms within a `begin',
e.g., `(begin (set! x 1) (set! x 2) ...)'.

> I have two possibilities in mind for this.  (1) is for C-x SPC to
> appear to work exactly as it has in the past, but not actually to send
> a `break-at' instruction to Guile.  Instead, the positions of the
> breakpoints are sent along with the code to be evaluated, and the
> gds-client code sets the 'breakpoint source property in all the right
> places, then evaluates the code.  (2) is to enhance the gds-eval*
> function so that a C-u prefix argument will cause them to set the
> 'breakpoint source property on the start of the code to be evaluated.

As long as `C-x SPC' keeps working the same way, it's all good.  ;-)

Thanks,
Ludovic.



_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-user


  reply	other threads:[~2007-10-29  8:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-28 20:54 Anyone relying on "break-at" breakpoints? Neil Jerram
2007-10-28 20:57 ` Neil Jerram
2007-10-28 21:24 ` Neil Jerram
2007-10-29  8:45   ` Ludovic Courtès [this message]
  -- strict thread matches above, loose matches on Subject: below --
2007-10-25 21:14 Neil Jerram
2007-10-26 12:10 ` Ludovic Courtès
2007-10-26 18:26   ` Neil Jerram
2007-10-27  9:33     ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fxzuux5x.fsf@chbouib.org \
    --to=ludo@gnu.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).