From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Learning Edebug Date: Fri, 20 Dec 2024 09:11:54 +0100 Message-ID: <86wmfuai45.fsf@fastmail.fm> References: <130443705.1910512.1734664285448.ref@mail.yahoo.com> <130443705.1910512.1734664285448@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15435"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.12.7; emacs 29.4 Cc: Lewis Creary To: Lewis Creary via Users list for the GNU Emacs text editor Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 20 09:12:35 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1tOY7d-0003lI-4t for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 20 Dec 2024 09:12:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOY7G-00085C-9u; Fri, 20 Dec 2024 03:12:10 -0500 Original-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 1tOY79-00084w-Nw for help-gnu-emacs@gnu.org; Fri, 20 Dec 2024 03:12:04 -0500 Original-Received: from fhigh-b5-smtp.messagingengine.com ([202.12.124.156]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOY76-0007P8-8x for help-gnu-emacs@gnu.org; Fri, 20 Dec 2024 03:12:02 -0500 Original-Received: from phl-compute-06.internal (phl-compute-06.phl.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 941A22540140; Fri, 20 Dec 2024 03:11:57 -0500 (EST) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Fri, 20 Dec 2024 03:11:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1734682317; x=1734768717; bh=TWzjZesxtitcnqkFmCjy8a70m97a9W/KaiflvpigJxg=; b= nKUw2J+LXBm1xDqGQ8L/TkPmChVZ/JRAbSlI8rWrnKzwpHACz3bXN615VP7AUnr9 rObWLJy3jIFF1U+RmsHvRKxc9OA40glCOfVfZkYKWRn4uKA2/zgcpCrZCXYCgSof ctXoxdvZfOfmpnWAIekETsUctgpggbkRsfXo8htTocfFQPfBvdf85kFhJ4MrpPMl xhJw/aifPifSx5u0G9CvcehwCX7CdyFeXFR0/K8AhZUpCGzaAjaZpO5zkAZ1P4y0 3hBWzLiNro35B2M4qrZeqJmJOqlM8N0t9pzoicuE2+sT7Fw7BQNKTBkcw6rPC7+J A7LqaZgLoFTrcq1C6WW2bA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1734682317; x= 1734768717; bh=TWzjZesxtitcnqkFmCjy8a70m97a9W/KaiflvpigJxg=; b=x nhwsd30Kpd5jI1dYCcnQE859+WJ3CQRBuFsaDnkAy6y4tJT99C1gSMhzEvXmVSdu Li/py8imMqLB9KgEOUZWGqWsdPEgSC+Mph+PKKAunKFM77RuNKnIhBBvVyGDwbuF EuFcjqd2499D2d3IU6L5KuhItpnMzsIGAkJNPDW617MIul4fyCfs2wJL9fgV1dYc FHgxYJECC6PSpaIlF3pXGbY52tRtxWocrS/DL5wWI/bv6Ic2pO69s4hkk4s/X1UB UWcsTrDY+l4ibYAA4gMRtWOcojw4so9Z1uT8FR1EQutDHIX3mABJy8M+ro30hzI5 yTJwvKI5uCg4rnsOrv4Pw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddtuddgudduhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefhvfevufgjfhgffffkgggtgfesthhqredttder jeenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhrvghmvghrsh esfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepleegieehudeuleegvedu feegtdffjeduteevuddthfekjeetgeehveekuedtgfdvnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghs thhmrghilhdrfhhmpdhnsggprhgtphhtthhopedvpdhmohguvgepshhmthhpohhuthdprh gtphhtthhopehlvgiftghrvggrrhihsegtshdrtghomhdprhgtphhtthhopehhvghlphdq ghhnuhdqvghmrggtshesghhnuhdrohhrgh X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 20 Dec 2024 03:11:56 -0500 (EST) In-Reply-To: <130443705.1910512.1734664285448@mail.yahoo.com> (Lewis Creary via Users list for the's message of "Fri, 20 Dec 2024 03:11:25 +0000 (UTC)") Received-SPF: pass client-ip=202.12.124.156; envelope-from=joostkremers@fastmail.fm; helo=fhigh-b5-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148891 Archived-At: On Fri, Dec 20 2024, Lewis Creary via Users list for the GNU Emacs text edi= tor wrote: > Hello, > I'm trying to learn how to use the Emacs lisp function Edebug, but so far > am not having any success.=C2=A0 The documentation says that I need to > "instrument" the function that I want to debug, and I'm even having troub= le > with that. > I've been programming in Emacs Lisp for over a decade, and have always > found that print statements were sufficient for debugging my programs.=C2= =A0 But > now I have a bug that I won't be able to understand without stepping > through the code with a debugger -- hence the need for Edebug.=C2=A0 I'm = looking > for a person who is willing and able to help me learn to use this tool.= =C2=A0 If > you are such a person, I'd be very glad to hear from you. > =C2=A0 --=C2=A0 Lew Creary Have you looked at the Edebug section in the Elisp manual: (info "(elisp) Edebug") It's quite long, but IME you don't need to read all of it right away. For starters, read the first chapter "Using Edebug": (info "(elisp) Using Edebug") In fact, for the longest time, this was basically all I knew about Edebug... =F0=9F=98=86 One additional command I often find useful: `e`, whi= ch allows you to evaluate an expression in the context of the program being debugged. HTH --=20 Joost Kremers Life has its moments