unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Jeremy Korwin-Zmijowski <jeremy@korwin-zmijowski.fr>
To: Michelangelo Rodriguez <michelangelo.rodriguez@gmail.com>,
	 guile-user@gnu.org
Cc: wingo@pobox.com
Subject: Re: single-stepping throwgh a procedure is possible in guile 3?
Date: Mon, 23 Mar 2020 22:56:48 +0100	[thread overview]
Message-ID: <c3226d7b3fbebad43b48541bbf518d8c86bdcccb.camel@korwin-zmijowski.fr> (raw)
In-Reply-To: <87zhcko9my.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 742 bytes --]

Le vendredi 13 mars 2020 à 11:02 +0100, Michelangelo Rodriguez a
écrit :
> Hi all,
> I'm studying guile and scheme and as sayd in the subject, i would
> like
> to know if single-stepping throwgh a procedure is possible in guile
> 3.
> I looked at internet for information, and i found a reference that is
> not applicable in guile 3.
> Greetings,
> Michelangelo
> 

Hey Michelangelo !

What is the reference you are mentionning ?

I saw Andy Wingo demonstrate something close to what you are looking
for at Guix Days 2020, but failed to reproduce it back home haha.

Maybe, if Andy see this thread and have some time to give some hints...
:)

I join snippets of what I have, but I don't know how to make them work
in the REPL...

Jérémy


[-- Attachment #2: traps2.scm --]
[-- Type: text/x-scheme, Size: 284 bytes --]

(use-modules (system vm trap-state)
	     (system repl repl)
	     (system vm vm))

(set-vm-trace-level! 1)

(define oneplus
  (lambda (x)
    (+ 1 x)))

(with-default-trap-handler
 (lambda (frame idx name)
   (start-repl)
   (pk frame idx name))
 (lambda () (map oneplus '(1 2 3))))

[-- Attachment #3: traps.scm --]
[-- Type: text/x-scheme, Size: 205 bytes --]

(use-modules (system vm trap-state)
	     (system repl repl)
	     (system vm vm))

(set-vm-trace-level! 1)

(define oneplus
  (lambda (x)
    (+ 1 x)))

(install-trap-handler! pk)

(map oneplus '(1 2 3))

      reply	other threads:[~2020-03-23 21:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-13 10:02 single-stepping throwgh a procedure is possible in guile 3? Michelangelo Rodriguez
2020-03-23 21:56 ` Jeremy Korwin-Zmijowski [this message]

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=c3226d7b3fbebad43b48541bbf518d8c86bdcccb.camel@korwin-zmijowski.fr \
    --to=jeremy@korwin-zmijowski.fr \
    --cc=guile-user@gnu.org \
    --cc=michelangelo.rodriguez@gmail.com \
    --cc=wingo@pobox.com \
    /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).