From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id +K7/OmKWhGMgDwEAbAwnHQ (envelope-from ) for ; Mon, 28 Nov 2022 12:07:15 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id cDsPO2KWhGP4hAEA9RJhRA (envelope-from ) for ; Mon, 28 Nov 2022 12:07:14 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 97E4E12465 for ; Mon, 28 Nov 2022 12:07:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozbyF-00084R-DE; Mon, 28 Nov 2022 06:06:44 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozby9-00080a-Oi for guix-devel@gnu.org; Mon, 28 Nov 2022 06:06:39 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozby9-0004Br-22; Mon, 28 Nov 2022 06:06:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=Ta0RCX19dJuWxe2ag+/jgGd8UetKmFyYdEiBKFwfksY=; b=Xy9rAzDXkD9rrtrcldUf VeUVN8N8rBhtXCHy9jUqahQJv7LlnTwsL14v7908tntjkqlUt+oIutTygmxtV4qRqc1VdnYyjAKnU E03sQy5H9EuuzuVQNbqNLyaIfStPovA2OMhjjMGYGMCkHlr7N05H9A8adhm2Nvze+XM2rfASnBlAD JMDMRXCGC4D06YtMNhvdTWWZZM2C6VwBtMPiq316WA8XXciBLvzeV+lCt4o8xN9hZhpbbUWnWqyvA fDVVeKQPg6ctM/lLJB4F8j9JMKpgH2+7+TBEnSneqoh683aO/0LtXFy1kpOL7bzvjBrbG5qA8Y6/l vDXALKe4wS6mQA==; Received: from [2001:660:6102:320:e120:2c8f:8909:cdfe] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozby8-0002dw-Bv; Mon, 28 Nov 2022 06:06:36 -0500 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: zimoun Cc: Maxim Cournoyer , guix-devel Subject: Re: Guile debugger workgroup? References: <86o7ss1u49.fsf@gmail.com> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Octidi 8 Frimaire an 231 de la =?utf-8?Q?R=C3=A9volu?= =?utf-8?Q?tion=2C?= jour du Miel X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 28 Nov 2022 12:06:33 +0100 In-Reply-To: <86o7ss1u49.fsf@gmail.com> (zimoun's message of "Sun, 27 Nov 2022 13:04:22 +0100") Message-ID: <87lenve3t2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669633634; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Ta0RCX19dJuWxe2ag+/jgGd8UetKmFyYdEiBKFwfksY=; b=ed61s0DpEiq9OFUvFmB0Aegr6dl3U7wrWliMnADCJtJCDDtxul1g/f0JYEglbiSIT+KmUu RryHcvGb/FVozjlvG7ee0v3yjojVzuVuAR9gFNnkOVBegNsgoy4GsqN4BU88+Q5LlyXAKZ Mw9XZZB98KBAbgS1qrGvq3FinhkYlU3nGfDj5XXZLwLCdXWf0BUmJTdc96DuFVkViy/jRF yuDGOKNZzYOtJF5pRmlyDZwTpuqiksfWNthmr8fFLRV7ENa9bmGwF0Ae360LwA/+aXJKBm 4aw2SZAPh0xSrSJO49FkCQkgcPfYb4z9dH7qEfdUYLWuWGSJv5qC1AZtVRzX9w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669633634; a=rsa-sha256; cv=none; b=YQI8yq8MV+rygG9jsARyWHf2/I1x73vK7bUgia4xJ/cKOdStPpmB0JtAAQmNoezBdlsn2i CUOsPRkrDEyrzgIvOuLlYZ61ZjhCmVBkC4fa7HJyAdlBp//TE/f+7BQFU6c5QxAajJoLI6 nUYOpXHWQ2KI1y6JIt+CAyIemZIPXaJi9sag3W9hQBiUaXl+I736QbuzXryGwsLKlCB8EX a5IR4hFnLw1nXbQfKqVyIrILrirygCIFBgUp5Utd1puBRQ1N3Qpj7K/xtfajd+qTXDt0P0 OCrzGHVwSxGeRoZcfyYRO8O8pf/DDrLBZXsYfJG/I5HO9M03FzrLYDFYT5qWcQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Xy9rAzDX; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=Xy9rAzDX; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 97E4E12465 X-Spam-Score: -2.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: koeOh58+Cch5 Hi, zimoun skribis: > scheme@(guix-user)> ,break example > Trap 2: Breakpoint at #. > scheme@(guix-user)> (example #t) > $2 =3D 20 I get this: --8<---------------cut here---------------start------------->8--- $ guile GNU Guile 3.0.8 Copyright (C) 1995-2021 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> (load "/tmp/example.scm") ;;; note: source file /tmp/example.scm ;;; newer than compiled /home/ludo/.cache/guile/ccache/3.0-LE-8-4.6/t= mp/example.scm.go ;;; note: auto-compilation is enabled, set GUILE_AUTO_COMPILE=3D0 ;;; or pass the --no-auto-compile argument to disable. ;;; compiling /tmp/example.scm ;;; : warning: possibly unused local top-level variable `= mutate-once' ;;; : warning: possibly unused local top-level variable `= mutate-twice' ;;; : warning: possibly unused local top-level variable `= do-something-with' ;;; : warning: possibly unused local top-level variable `= example' ;;; compiled /home/ludo/.cache/guile/ccache/3.0-LE-8-4.6/tmp/example.scm.go scheme@(guile-user)> ,break example Trap 0: Breakpoint at #. scheme@(guile-user)> (example #t) Trap 0: Breakpoint at # Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,bt In /tmp/example.scm: 17:0 0 (example #t) scheme@(guile-user) [1]> ,locals No local variables. --8<---------------cut here---------------end--------------->8--- and then: --8<---------------cut here---------------start------------->8--- scheme@(guile-user) [1]> ,q $1 =3D 20 scheme@(guile-user)> ,break /tmp/example.scm 17 While executing meta-command: Wrong number of arguments to # scheme@(guile-user)> ,break-at /tmp/example.scm 17 Trap 1: Breakpoint at /tmp/example.scm:17. scheme@(guile-user)> (example #t) Trap 1: Breakpoint at /tmp/example.scm:17 Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. scheme@(guile-user) [1]> ,q Trap 0: Breakpoint at # Entering a new prompt. Type `,bt' for a backtrace or `,q' to continue. --8<---------------cut here---------------end--------------->8--- Why doesn=E2=80=99t it work in =E2=80=98guix repl=E2=80=99? Because auto-c= ompilation is disabled: --8<---------------cut here---------------start------------->8--- $ head -1 $(type -P guix) #!/gnu/store/805g934pgy3955g87ld6qixny6biwmj3-guile-wrapper/bin/guile --no-= auto-compile --8<---------------cut here---------------end--------------->8--- =E2=80=A6 which in turn causes =E2=80=98load=E2=80=99 to evaluate code. I think we should identify scenarios where things don=E2=80=99t work as expected, and then turn them into bug reports, documentation issues, or any other concrete action we should take. And I guess that brings us back to Maxim=E2=80=99s suggestion of starting a debugger workgroup. :-) Ludo=E2=80=99.