From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YA1tL1+vhGMcKAAAbAwnHQ (envelope-from ) for ; Mon, 28 Nov 2022 13:53:51 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id iNuVLl+vhGPOQwAAG6o9tA (envelope-from ) for ; Mon, 28 Nov 2022 13:53:51 +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 75BC22F056 for ; Mon, 28 Nov 2022 13:53:51 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozddG-0000cz-EO; Mon, 28 Nov 2022 07:53:10 -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 1ozddC-0000cZ-EW for guix-devel@gnu.org; Mon, 28 Nov 2022 07:53:06 -0500 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozddA-000640-Lq; Mon, 28 Nov 2022 07:53:06 -0500 Received: by mail-wm1-x330.google.com with SMTP id 5so8369511wmo.1; Mon, 28 Nov 2022 04:53:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=3NPTtDkuQCzcJN9C2P/UR0CMejhl4lGOPFvxonb1xRQ=; b=pdqKAfMKTF5/VI+6kQXcskXlwDESYsGC0edcYifMQ7HQOel6BVqfoFydwjQe4tsYhw Xrz+B1wTphimyIXu1t5eePRYgrgoCc/oEkXzjLHxl/YQtPMIHsC81IufbrPK+Ebuh1ut zzC4Ct207mFxzYl9Ulr0VZxZSpN4dfMUOJ8Q18LVnS2iU5B2R5jCq4WZGWE7AceYO3oz 9Zy7VsS+H0214ShJY1X+WL2FTpS+gm+RuFPJnWk/Q62oXrXxeB5OA5TZc+42nzATiutY yTc1Zqp4LdRKEO8UCswrnOq4a4gncGgz/TpaMPDqfPCqBCrO8stOtxFra0aWVKApe/1a h0+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=3NPTtDkuQCzcJN9C2P/UR0CMejhl4lGOPFvxonb1xRQ=; b=iGdk29ILbDkK3STFQHcsdTLoGl1BytFA1BGymxF2tmpaaTR+z9UyZO3gjRnoNTblJc 2Q5bpWxzuWl/FDVGCXadXA/1zm0lzHlbFAZYMx8jkJhXoL1cm8VDFWXxz83I4en4JCz6 FKIy7LS4Ged636Sj8cuL2pdw2O5Moh+rZa1FKEGfo98KVzC/1MMY3KkVilO5zlDGb21i CN9QJ6BIJX9H8KN7UwMjGwqJqxONKGz1+2I7ogfJ9GgHV5N6tHGKGk0z4l7JxdLopi+L kwg+h8urycnRkZe+gon/mo85zPLWcIj7H7HEPG4XRM7O31Kn84/G7NCQEv77Lt6eOVMT w3lg== X-Gm-Message-State: ANoB5pnqgLrY34W22+vTxLiRXLRGkuMFnoND5GlwOaOjL+dYBnJ5hbqg CYMGUrzV+RxVVIFJtQDH/3PDKorLgY0= X-Google-Smtp-Source: AA0mqf7YmHqAjbdZv3G4Hq+QkkaefqTXdpoMTsNV0dG4zLbAkl0peZqUtY4d3zwH+MsE3bjKGv2CYA== X-Received: by 2002:a05:600c:3514:b0:3cf:e0ef:1f6c with SMTP id h20-20020a05600c351400b003cfe0ef1f6cmr29973635wmq.75.1669639979679; Mon, 28 Nov 2022 04:52:59 -0800 (PST) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id f6-20020adff8c6000000b002258235bda3sm10259740wrq.61.2022.11.28.04.52.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Nov 2022 04:52:59 -0800 (PST) From: zimoun To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: Maxim Cournoyer , guix-devel Subject: Re: Guile debugger workgroup? In-Reply-To: <87lenve3t2.fsf@gnu.org> References: <86o7ss1u49.fsf@gmail.com> <87lenve3t2.fsf@gnu.org> Date: Mon, 28 Nov 2022 13:31:37 +0100 Message-ID: <877czftg46.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=zimon.toutoune@gmail.com; helo=mail-wm1-x330.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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=1669640031; 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=3NPTtDkuQCzcJN9C2P/UR0CMejhl4lGOPFvxonb1xRQ=; b=SLAkS5qaPvL3/QeoU8NT3vAgA6pDy52EtPAyDQyzJMtF+uxIj2MuOXKvI4xbqOmnuHjhlD BGZdo56k3h1fIDzKJr88cjhU3o2FloO8M34ossSgapEZ8t3jQQbTojVptuxhzQ4bLS9QNG 3QERHAXjyThG2tZ2rnmetFuUumLdF74GcrKefPebnePMSv5mBkDF1pSiAI11w9rvuxmaEB cN3E5H1kA6Hqh8rcYSlncL50wl4jDAruV/MIeWplCh4Gm2l8EcaWeCJHwnY9Uhx5YCuR9w UxlJLAxMVuLiFU0lNiDOHlpq8U+UMYhrouchHr7f0wGyQFWV2Zv9NUgTV4aAmg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669640031; a=rsa-sha256; cv=none; b=tgi3ez12deGhX8hTZwE1wnPYrxEfB96FpFSlrdaWdMgCA3u5+CRPpgGZv+i5Eok3YoPZ76 bFLZVfW9k0JeaVbqCkBzLWhU81KVV8E3+FOEDUA8n6YK4nz72nMtPUJniYcpF4D4xoWVcn r9Z0wS1Zkw3nEPFubjorS5MAN0bftKo7Kv1czbktr8KK7/EBlpunjsb9XhcUdopNfKFawU 3JMnO9B8+obPwabSERwf3z3eZhH/6esQfJJsCQbwvXXixlYwj9scg5fBuHHvD/+/JUi1qQ tbZ2cPOUXFuNanhk89xqNeJbh4abytXJp9wY1M0H7grn5ewKlZKrGMq3KNNSGA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pdqKAfMK; dmarc=pass (policy=none) header.from=gmail.com; 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: -1.46 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=pdqKAfMK; dmarc=pass (policy=none) header.from=gmail.com; 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: 75BC22F056 X-Spam-Score: -1.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: siTCbqe9FUgJ Hi, On Mon, 28 Nov 2022 at 12:06, Ludovic Court=C3=A8s wrote: > Why doesn=E2=80=99t it work in =E2=80=98guix repl=E2=80=99? Because auto= -compilation is > disabled: Ah, thanks. Well, maybe we could have an option to start =E2=80=9Cguix rep= l=E2=80=9D with debug mode available=E2=80=A6 even if it is really slow. > 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. The example I provided is, IMHO, a good scenario for starting. :-) For instance, ,step by ,step works, --8<---------------cut here---------------start------------->8--- $ guix shell guile -- guile -q 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/my-target.scm") 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/my-target.scm: 17:0 0 (example #t) scheme@(guile-user) [1]> ,s Step into # scheme@(guile-user) [1]> ,bt In /tmp/my-target.scm: 19:21 0 (example _) scheme@(guile-user) [1]> ,s Step into # scheme@(guile-user) [1]> ,s Step into # scheme@(guile-user) [1]> ,s Step into # scheme@(guile-user) [1]> ,bt In /tmp/my-target.scm: 19:20 1 (example _) 3:0 0 (mutate-once "something") scheme@(guile-user) [1]>=20 --8<---------------cut here---------------end--------------->8--- but then I do not know how many steps are required to reach the other =E2=80=99mutate-twice=E2=80=99. --8<---------------cut here---------------start------------->8--- Step into # Step into # 4x Step into # 5x Step into # 4x Step into # Step into # 10x Step into # 4x Step into # Step into # 6x Step into # 3x Step into # 5x Step into # Step into # =E2=80=A6 --8<---------------cut here---------------end--------------->8--- And I do not know if ,break-at-source works correctly. --8<---------------cut here---------------start------------->8--- $ cat -n /tmp/my-target.scm | grep 20 20 (my-target (mutate-twice my-target))) $ guix shell guile -- guile -q 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/my-target.scm") 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/my-target.scm: 17:0 0 (example #t) scheme@(guile-user) [1]> ,break-at-source "/tmp/my-target.scm" 20 Trap 1: Breakpoint at /tmp/my-target.scm:20. scheme@(guile-user) [1]> ,bt In /tmp/my-target.scm: 17:0 0 (example #t) scheme@(guile-user) [1]> ,next Step into # scheme@(guile-user) [1]> ,bt In /tmp/my-target.scm: 19:21 0 (example _) scheme@(guile-user) [1]> ,locals No local variables. scheme@(guile-user) [1]> --8<---------------cut here---------------end--------------->8--- Cheers, simon