unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Andy Wingo <wingo@pobox.com>
To: ludo@gnu.org (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: relatedly! RFH: make C-d in debugger not terminate process
Date: Sun, 06 Jun 2010 17:37:20 +0200	[thread overview]
Message-ID: <m3k4qcuq8f.fsf@pobox.com> (raw)
In-Reply-To: <8739x0p82y.fsf@gnu.org> ("Ludovic Courtès"'s message of "Sun, 06 Jun 2010 16:08:21 +0200")

Hi!

On Sun 06 Jun 2010 16:08, ludo@gnu.org (Ludovic Courtès) writes:

> Andy Wingo <wingo@pobox.com> writes:
>
>> I am currently poking about to make it possible to run a recursive repl,
>> from the debugger, in the context of the error. It would be nice to be
>> able to exit said recursive repl via Control-D, and it would likewise be
>> nice to be able to exit the debugger via Control-D. I'm sure this is
>> possible. Can someone hook this up?
>
> What about C-] as in Emacs?

Ah yes that would be nice as well. Both would be nice, in fact ;)

By the way we do have a recursive repl from the debugger now, but you
have to exit it with (quit). For example:

  scheme@(guile-user)> (let ((a 10) (b 0)) (/ a b))
  Throw to key `numerical-overflow':
  ERROR: In procedure /:
  ERROR: Numerical overflow
  Entering the debugger. Type `bt' for a backtrace or `c' to continue.
  0 debug> bt 2
  In module/ice-9/boot-9.scm:
     61:  1 (call-with-prompt prompt0 #<procedure 8fe40e0 at modu...> #)
  In current input:
      1:  0 (#<procedure 8fe40f0 at <current input>:1:0 ()>)
  0 debug> repl
  Read-only local variable a = 10
  Read-only local variable b = 0
  scheme@(#{\ g35}#) [1]> a
  $1 = 10
  scheme@(#{\ g35}#) [1]> (quit)
  0 debug> bt
  In module/ice-9/boot-9.scm:
   1056:  2 (#<procedure 8f33060 ()>)
     61:  1 (call-with-prompt prompt0 #<procedure 8fe40e0 at modu...> #)
  In current input:
      1:  0 (#<procedure 8fe40f0 at <current input>:1:0 ()>)
  0 debug> up
  #1  0x00000016 in (call-with-prompt prompt0 #<procedure 8fe40e0 at mo...> #)
  1 debug> repl
  Read-only local variable tag = prompt0
  Read-only local variable thunk = #<procedure 8fe40e0 at module/sys...>
  Read-only local variable handler = #<procedure default-prompt-hand...>
  scheme@(#{\ g76}#) [1]> handler
  $2 = #<procedure default-prompt-handler (k proc)>

Et cetera...

Andy
-- 
http://wingolog.org/



  reply	other threads:[~2010-06-06 15:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-01 20:25 relatedly! RFH: make C-d in debugger not terminate process Andy Wingo
2010-06-06 14:08 ` Ludovic Courtès
2010-06-06 15:37   ` Andy Wingo [this message]
2010-06-06 20:44     ` 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=m3k4qcuq8f.fsf@pobox.com \
    --to=wingo@pobox.com \
    --cc=guile-devel@gnu.org \
    --cc=ludo@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).