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: Debug setup in emacs Date: Tue, 08 Sep 2020 10:18:16 -0700 Message-ID: <87a6y0kx0n.fsf@posteo.net> References: <874kod3ygp.fsf@posteo.net> <87v9gpicf4.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="24899"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Guile User To: Zelphir Kaltstahl Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Tue Sep 08 19:18:44 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 1kFhGU-0006IU-Jn for guile-user@m.gmane-mx.org; Tue, 08 Sep 2020 19:18:42 +0200 Original-Received: from localhost ([::1]:38524 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFhGT-0004C0-FO for guile-user@m.gmane-mx.org; Tue, 08 Sep 2020 13:18:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60084) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFhGE-0004Bd-PO for guile-user@gnu.org; Tue, 08 Sep 2020 13:18:27 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:42360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFhGB-0007Dt-Hi for guile-user@gnu.org; Tue, 08 Sep 2020 13:18:26 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id C314D16005C for ; Tue, 8 Sep 2020 19:18:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1599585499; bh=yCEIthr/EQ3dFIRWbYE3dS/6JKwWqE67jayGD5DGY84=; h=From:To:Cc:Subject:Date:From; b=YkFqfJ9mu8ZRunPseJ07+VjFkIgKs2ReTlQo05+FwYLvSDeQ/jrHHlFPNTELTHYsV I5ooIroWxJc6/tppFZbJ6QsQ/evEnNrl1PXxsPCv7iIRPaQubLHBVUUV/ANQ/qcFFW yfkZEDDqKP1q1wctftczQckuPE4F62CmCDOZlphyIJNM193qNNwaISPBOY7eI85Lqt r+PO9iddozQ86A5rdTQAxOIwB9/+07wkEr93f1xJZfmU4et+pxFNUTX23AfRftQSZm lYpwY4PPWmWK2z1pZk+CFOvCsquaEBDNmWLhCwPJuybkhtjz7IOCdtslCGhRifHj8G aFE3IJb+imiUg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BmBgZ4lqDz9rxH; Tue, 8 Sep 2020 19:18:18 +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 13:18:20 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:16891 Archived-At: Hi Zelphir, Zelphir Kaltstahl writes: > I usually find myself using (display (simple-format #f "blablabla: ~a\n > some-binding)) or a custom procedure wrapping it. You might want to try (simple-format #t "blablabla: ~a\n some-binding) instead. The #t will send it to the current output port, so it will do the same as the above. just less to type :). > At some point it becomes too much and I switch to the REPL and trying > things in there, if the setup or situation is not too hard to reproduce. > Also used (pk ...) sometimes, when I am not sure an expression is ever > evaluated. Yeah, definetly need to check out the "pk" procedure. Seems quite useful. > If this fails me, I sometimes try to think about all the custom > procedures involved and start writing tests. > > If I am too lazy to do that, I find myself thinking about the problem > real hard and then usually facepalming about my own silly mistakes. Writing tests + sprinkle (format #t ...) and thinking hard about the problem is what I've been doing to find all my own silly mistakes. > If I still don't know what's going on, I might ask on the mailing list > for help. Thanks for the input! -- s/Fred[re]+i[ck]+/Fredrik/g