From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fredrik Salomonsson Newsgroups: gmane.lisp.guile.user Subject: Re: How do people debug their guile code? Date: Tue, 08 Sep 2020 15:12:46 -0700 Message-ID: <87pn6v534x.fsf@posteo.net> References: <877dt4kvw2.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3051"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user@gnu.org To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Sep 09 00:13:11 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kFlrS-0000i0-CR for guile-user@m.gmane-mx.org; Wed, 09 Sep 2020 00:13:10 +0200 Original-Received: from localhost ([::1]:55206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFlrR-0003GW-5f for guile-user@m.gmane-mx.org; Tue, 08 Sep 2020 18:13:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42660) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFlrF-0003Ez-SD for guile-user@gnu.org; Tue, 08 Sep 2020 18:12:58 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:50795) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFlrC-0003wc-U2 for guile-user@gnu.org; Tue, 08 Sep 2020 18:12:57 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id B5E7C16005C for ; Wed, 9 Sep 2020 00:12:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1599603169; bh=ctYQ+pHbEDSLDsVEpMu/DckGqVAPlibLAG1hlLkCPRQ=; h=From:To:Cc:Subject:Date:From; b=XZDvN6UNRQiMpxGjBs+MPQtFBYhWwqCVasg7v9+SxvqqQnZLncmoW1cGO+RFIaUgi YDZw1AxBedR4dxGfbWyPZE6M6KJZCfRJNjYHkuHIdw8q0gAG7kitlBerdMETV6ydvJ UPOqY2tIeHjZGa1+ls6UvTex2GcDOL5QElsI7lE/DI5LfjmdulM6gzSy1pxyrS6abz FGzdPfU+Jjv2P/Sb262LypkIvcKKyz2/Xa+ChE1KT55BQ543vXQJXLphMuh8ND0Sf3 uPVTfiNjxUcjEY6MhDcRiHLObowXNGFYQ+PN3fk+HNwQwUUvJx6rf0TM/gKHCLuLa4 A3JhJ6ePYQJlg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BmKCN60SXz9rxL; Wed, 9 Sep 2020 00:12:48 +0200 (CEST) In-Reply-To: Received-SPF: pass client-ip=185.67.36.65; envelope-from=plattfot@posteo.net; helo=mout01.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/08 16:00:09 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16897 Archived-At: Hi Zelphir, Zelphir Kaltstahl writes: > I've not used guile-hall yet, nor tested with it. It has some rough edges but keeps my focus away from hacking on build system files (which I tend to do far too much). So I'm digging it. > However, what I do to reproduce the same environment as I have in > srfi-64 unit test, but inside the REPL is the following: > > 1. start the Guile REPL with `guile -L ` > 2. run `(use-modules ())` > 3. use procedures defined inside the module > 4. copy and paste changed or new definitions from the code > 5. try out the definitions and if something goes wrong fix it and go > back to step 4 again > > If running M-x run-guile or M-x run-geiser from Emacs, one might need to > change the %load-path of Guile. This can be done with `(add-to-load-path > )` for example. Then one can > proceed as described above again. > > Not sure if any of this is new to you, but I guessed it would be good to > put it out there. Thanks for the write up. I know most of the pieces, from reading the manual. But I'm still trying to piece them together so this is very helpful for me. Especially the "add-to-load-path" for geiser, as that is what I was missing. -- s/Fred[re]+i[ck]+/Fredrik/g