From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.user Subject: Re: Interactive Debugging Date: Fri, 18 Oct 2019 17:21:59 -0400 Message-ID: <8736fppx4d.fsf@netris.org> References: <1571373554.24401.4.camel@librehacker.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="214270"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: Guile User , Matt Wette To: "Thompson\, David" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Oct 18 23:23:37 2019 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLZih-000taH-Dc for guile-user@m.gmane.org; Fri, 18 Oct 2019 23:23:35 +0200 Original-Received: from localhost ([::1]:46134 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLZig-0007Rq-BT for guile-user@m.gmane.org; Fri, 18 Oct 2019 17:23:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53567) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLZiP-0007Rh-3i for guile-user@gnu.org; Fri, 18 Oct 2019 17:23:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLZiN-0006XX-P4 for guile-user@gnu.org; Fri, 18 Oct 2019 17:23:16 -0400 Original-Received: from world.peace.net ([64.112.178.59]:39878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iLZiN-0006Sr-LE for guile-user@gnu.org; Fri, 18 Oct 2019 17:23:15 -0400 Original-Received: from mhw by world.peace.net with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iLZi9-0001jO-Sj; Fri, 18 Oct 2019 17:23:01 -0400 In-Reply-To: (David Thompson's message of "Fri, 18 Oct 2019 09:18:18 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.112.178.59 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:15769 Archived-At: "Thompson, David" writes: > On Fri, Oct 18, 2019 at 8:40 AM Matt Wette 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