From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.user Subject: Re: Stack traces Date: Thu, 18 May 2017 20:05:55 -0700 Message-ID: <06A50509-412A-4212-9CE6-C0CB4ED61AE1@gmail.com> References: <87h93wto3y.fsf_-_@gnu.org> <87mvdn4gam.fsf@dustycloud.org> <641f554a-3672-d71a-78cd-f32f5287f98d@hypermove.net> <34F40DF4-899A-4400-A2F6-820EFB3C66FD@gmail.com> <87efyjqt6c.fsf@pobox.com> <87vaoy709i.fsf@dustycloud.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1495163194 22847 195.159.176.226 (19 May 2017 03:06:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 19 May 2017 03:06:34 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri May 19 05:06:26 2017 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dBYFG-0005n6-Dl for guile-user@m.gmane.org; Fri, 19 May 2017 05:06:26 +0200 Original-Received: from localhost ([::1]:56327 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBYFM-0003xt-1K for guile-user@m.gmane.org; Thu, 18 May 2017 23:06:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53200) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dBYEv-0003wp-27 for guile-user@gnu.org; Thu, 18 May 2017 23:06:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dBYEr-0005Zq-Sb for guile-user@gnu.org; Thu, 18 May 2017 23:06:05 -0400 Original-Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]:35665) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dBYEr-0005ZC-HE for guile-user@gnu.org; Thu, 18 May 2017 23:06:01 -0400 Original-Received: by mail-pg0-x22a.google.com with SMTP id q125so31536819pgq.2 for ; Thu, 18 May 2017 20:05:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=5L088kb51kd958UDbchWc++DpdN1kVmz+iQQ390V8CY=; b=u3pivZbx9lOHkeKKK2zTVknkFKbm1zlwC1rIjIvNOeLPyiGYtgaLsRyELh4NgYBEbS fHIWlYHwFAILABokcyHnNoss2toRwQGhRaP1Rd9cO60gfzkrB9CJCwQ5E4xmgznKOryw U8w5uX0F1aC/Z6gKpFseHBuRAXhc5Ee7nXn5G9+iQLTccuHFZoQA4tYwP0fwZnyNO+Cy QXRNr3oQds0btDh+WhmeTSq1P/JFQnhnZHEWmF5HgLBdEs3cK7bNkX3YwJkLSAj7VB/y DS4zmPJOraBECaCJ4APC10OUvxd9Xj8txwYidynJlisZE8OelXSffz7we+g0GYlA3zE+ iL1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=5L088kb51kd958UDbchWc++DpdN1kVmz+iQQ390V8CY=; b=X4miCN968P3Ulk729x2gD0uGbkrJQ7IAJEjBnr7CbRQZPLP1eByjzQzIDOWyVvM6An /xbYFDq/ze7bYfN7HsWXB9eKpRQ+lmaHbgtdCaBCjbHeMEExLzbqXY9XJWk4POQ7bXhE FCcz3iPtf9O0wuPsn7ava7k9AcUk0ym1YVmpvk9mk3lkDZo5IVBt2gPFSy2FsYjFU16M oh3NMKD813WP1IVINICVESl9ibvo7CRzY6TKIUtKgcwmFO41/YkoAurTZuvz2uKS73go RT5c54uDaQD8hq+YLg8C2dgbNcOnliWOJebn11nd+eZCwZsRPQ+u5fuwrt8zNY2QBrFO VkyA== X-Gm-Message-State: AODbwcAUToi9DE0dnvEJANOZ/gh0R1NZtfi9kXDXDlyQcaf1TlS0DcPJ YMspona9w9QuFC1pEQs= X-Received: by 10.84.175.67 with SMTP id s61mr8556452plb.43.1495163158499; Thu, 18 May 2017 20:05:58 -0700 (PDT) Original-Received: from [192.168.2.114] (216-165-236-44.championbroadband.com. [216.165.236.44]) by smtp.gmail.com with ESMTPSA id v6sm10364143pgb.20.2017.05.18.20.05.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2017 20:05:56 -0700 (PDT) In-Reply-To: <87vaoy709i.fsf@dustycloud.org> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c05::22a X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 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:13727 Archived-At: > On May 18, 2017, at 6:38 AM, Christopher Allan Webber = wrote: >=20 > Amirouche writes: >=20 >> Le 27/02/2017 =C3=A0 21:23, Andy Wingo a =C3=A9crit : >>> On Sat 18 Feb 2017 20:59, Amirouche = writes: >>>=20 >>>> How do you access variables in the REPL? >>> ,locals >>>=20 >>> Andy >> It doesn't display something that I can use. >=20 > (Returning to this few-months-old thread...) >=20 > Yes, I frequently find that ,locals does not display much > information... it seems to be a toss-up whether the variables I need > will be contained in it, so I've reduced the amount I use the actual > debugger system in Guile a lot. A shame, because it seems really = nice. >=20 > Because of this, I think I do what a lot of Guile hackers do (which is > totally undocumented in the manual, so only people who have been = hanging > around with someoen else who knows tend to know about it), which is to > use (pk) everywhere. It's not as nice as being able to play with = local > variables at the REPL though! > But then I ran ,optimize, and that made it obvious what's happening: >=20 > (define (foo) > (start-repl > #:debug > (make-debug > (stack->vector (make-stack #t)) > 0 > "trap!" > #t)) > (start-repl Thanks for the insight. That explains a lot. Matt