unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Christopher Lam <christopher.lck@gmail.com>
To: Mark H Weaver <mhw@netris.org>
Cc: guile-user <guile-user@gnu.org>,
	"Thompson, David" <dthompson2@worcester.edu>,
	Matt Wette <matt.wette@gmail.com>
Subject: Re: Interactive Debugging
Date: Thu, 24 Oct 2019 07:48:24 +0800	[thread overview]
Message-ID: <CAKVAZZLR0wvSwvwh65yVK3jcDZHc6HQN7fM8GQDR1h6rAP0+MA@mail.gmail.com> (raw)
In-Reply-To: <8736fppx4d.fsf@netris.org>

Agree it'll be a major aid to decreasing the learning curve. For now the
only way to analyse a variable in a script is to (pk) it, which is annoying
when it's a record/alist etc. Need to refine the pk several times or write
a custom printer.

Not sure how much knowledge of debugger is required, all I want to do is to
dump local variables at the breakpoint.

On Sat, 19 Oct 2019, 05:23 Mark H Weaver, <mhw@netris.org> wrote:

> "Thompson, David" <dthompson2@worcester.edu> writes:
>
> > On Fri, Oct 18, 2019 at 8:40 AM Matt Wette <matt.wette@gmail.com> wrote:
> >>
> >> On 10/17/19 9:39 PM, Christopher Howard wrote:
> >> > Hi, it seems like with the flexibility of Guile, I should be able to
> do
> >> > something like this:
> >> > ```(define (foo)  (let ((a 1)        (b 2)        (c 3))
> (jump-into-
> >> > debugging-repl)))```
> >> > And have access to a, b, and c and their values. But I'm not quite
> >> > figuring out how to this.
> >> >
> >>
> >> Define dump-into-debugging-repl as
> >>
> >> (start-repl #:debug (make-debug (stack->vector (make-stack #t)) 0
> >> "trap!" #t))
> >
> > I think something like this should be shipped in the (system repl
> > debug) module.  I'm used to quick and easy access to a debugger in
> > other languages, such as Ruby, and having to wrap your head around the
> > REPL, debug, and stack code is too much to ask of any new Guiler.
>
> For what it's worth, I think something like this would be a welcome
> addition.  However, my knowledge of the Guile debugger is currently
> quite weak, so I'd prefer to hear from Andy before proceeding.
>
>      Thanks,
>        Mark
>
>


  parent reply	other threads:[~2019-10-23 23:48 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-18  4:39 Interactive Debugging Christopher Howard
2019-10-18 12:39 ` Matt Wette
2019-10-18 13:18   ` Thompson, David
2019-10-18 21:21     ` Mark H Weaver
2019-10-19 14:42       ` Matt Wette
2019-10-23 23:48       ` Christopher Lam [this message]
2019-10-24  9:22         ` Amirouche Boubekki
     [not found] <mailman.75.1571500806.2224.guile-user@gnu.org>
2019-10-19 19:04 ` Christopher Howard
2019-10-19 19:09   ` Matt Wette
     [not found] <mailman.2435.1571402405.9712.guile-user@gnu.org>
2019-10-18 13:38 ` Christopher Howard
  -- strict thread matches above, loose matches on Subject: below --
2019-10-18  4:37 Christopher Howard

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=CAKVAZZLR0wvSwvwh65yVK3jcDZHc6HQN7fM8GQDR1h6rAP0+MA@mail.gmail.com \
    --to=christopher.lck@gmail.com \
    --cc=dthompson2@worcester.edu \
    --cc=guile-user@gnu.org \
    --cc=matt.wette@gmail.com \
    --cc=mhw@netris.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).