From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Jose A. Ortega Ruiz" Newsgroups: gmane.lisp.guile.devel Subject: Re: repl debugger impressions Date: Sun, 17 Oct 2010 20:00:47 +0200 Message-ID: <87lj5wbsxc.fsf@newton.homeunix.net> References: <519970.1475.qm@web37901.mail.mud.yahoo.com> <874oclhsm6.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1287338912 17888 80.91.229.12 (17 Oct 2010 18:08:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 17 Oct 2010 18:08:32 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Oct 17 20:08:30 2010 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1P7Xen-0001Ga-RP for guile-devel@m.gmane.org; Sun, 17 Oct 2010 20:08:30 +0200 Original-Received: from localhost ([127.0.0.1]:52575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7Xem-00017a-Ea for guile-devel@m.gmane.org; Sun, 17 Oct 2010 14:08:28 -0400 Original-Received: from [140.186.70.92] (port=39905 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P7Xee-00017S-Se for guile-devel@gnu.org; Sun, 17 Oct 2010 14:08:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P7Xed-0002bo-Qv for guile-devel@gnu.org; Sun, 17 Oct 2010 14:08:20 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:35692) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P7Xed-0002bj-GR for guile-devel@gnu.org; Sun, 17 Oct 2010 14:08:19 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P7Xea-0001Cg-Dc for guile-devel@gnu.org; Sun, 17 Oct 2010 20:08:16 +0200 Original-Received: from 83.32.171.90 ([83.32.171.90]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Oct 2010 20:08:16 +0200 Original-Received: from jao by 83.32.171.90 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 17 Oct 2010 20:08:16 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 83.32.171.90 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Attribution: jao X-URL: Cancel-Lock: sha1:XWtFgprNd42ZplshpqpG8sN904g= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11050 Archived-At: On Sun, Oct 17 2010, Ludovic Courtès wrote: [...] >> And, if that filename:line:column were delimited by something >> unique, for example curly braces, it would then be easy enough >> to write an Emacs minor mode to pick up that filename:line:column >> from the Geiser or Shell window and automatically center another >> window on that file at that source line, the way the GDB GUD mode >> does. > > +1 > > I think we need input from the Gesier Meister here. :-) Well, the current format in which frame information is printed (when requested by ,frame) in case of errors is already enough for Geiser to jump to the error location: just try M-g n (next-error) when an evaluation error happens, or set geiser-guile-jump-on-debug-p to t to make jumping (after an evaluation outside the REPL) the default behaviour (as Ludo knows, being the one who had the idea :)). To support the new debugger, all that is needed is a way to distinguish whether one entered the debugger as a result of an error (so that one's interested in the current frame) or because of a breakpoint (and then the relevant source info corresponds to the _next_ frame). I think Andy's planning to make that information easily available at some point, and i was waiting for that to add full support to Guile's debugger in geiser (including things like setting a breakpoint in the current line/function &c.). (I'm just being a little lazy, because i know it's already probably possible to snarf that information from the repl object, but it's a bit convoluted.) Cheers, meister jao -- I want to stay as close to the edge as I can without going over. Out on the edge you see all kinds of things you can't see from the center. -Kurt Vonnegut, Jr.