From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?iso-8859-1?Q?Court=E8s?=) Newsgroups: gmane.lisp.guile.user Subject: Re: Give up Guile Date: Sat, 04 Sep 2010 23:26:17 +0200 Message-ID: <87occdp5dy.fsf@gnu.org> References: 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 1283636036 14178 80.91.229.12 (4 Sep 2010 21:33:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 4 Sep 2010 21:33:56 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Sep 04 23:33:54 2010 Return-path: Envelope-to: guile-user@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 1Os0My-0007EW-ES for guile-user@m.gmane.org; Sat, 04 Sep 2010 23:33:52 +0200 Original-Received: from localhost ([127.0.0.1]:59122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Os0Fx-0004aU-Op for guile-user@m.gmane.org; Sat, 04 Sep 2010 17:26:37 -0400 Original-Received: from [140.186.70.92] (port=46272 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Os0Fp-0004Yx-Qo for guile-user@gnu.org; Sat, 04 Sep 2010 17:26:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Os0Fo-0003wu-RV for guile-user@gnu.org; Sat, 04 Sep 2010 17:26:29 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:33186) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Os0Fo-0003wn-G2 for guile-user@gnu.org; Sat, 04 Sep 2010 17:26:28 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Os0Fn-0004ZJ-RZ for guile-user@gnu.org; Sat, 04 Sep 2010 23:26:27 +0200 Original-Received: from yoda.fdn.fr ([80.67.169.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Sep 2010 23:26:27 +0200 Original-Received: from ludo by yoda.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 04 Sep 2010 23:26:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: yoda.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 18 Fructidor an 218 de la =?iso-8859-1?Q?R=E9volutio?= =?iso-8859-1?Q?n?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:NxA1+BZRbBXJ1CnuutBUTQgmxkk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8155 Archived-At: Hi, Shenli Zhu writes: > Everyone knows a good debugger is very important, I’m not sure if you’ve seen that, but while Guile 1.9 doesn’t have breakpoints yet, it does have debugging capabilities. For instance, here’s an interactive session showing the debugging REPL in 1.9.12: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (define (foo x) (/ 2 x)) scheme@(guile-user)> (foo 0) :8:17: In procedure /: :8:17: Numerical overflow Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In current input: 7:16 0 (foo 0) scheme@(guile-user) [1]> ,proc $1 = # scheme@(guile-user) [1]> ,locals Local variables: $2 = x = 0 scheme@(guile-user) [1]> ,error :8:17: In procedure /: :8:17: Numerical overflow --8<---------------cut here---------------end--------------->8--- There are other facilities, like procedure call tracing: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (define (fib n) (if (<= n 1) n (+ (fib (- n 1)) (fib (- n 2))))) scheme@(guile-user)> ,trace (fib 3) (fib 3) |(fib 2) ||(fib 1) ||1 ||(fib 0) ||0 |1 |(fib 1) |1 2 --8<---------------cut here---------------end--------------->8--- Just to illustrate that while debugging support in 1.9 isn’t perfect, it’s not completely lacking either. :-) Thanks, Ludo’.