From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: mbork@mbork.pl Newsgroups: gmane.emacs.help Subject: Re: Learning Edebug Date: Fri, 20 Dec 2024 07:23:06 +0100 Message-ID: <871py2j2k5.fsf@mbork.pl> 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="16098"; mail-complaints-to="usenet@ciao.gmane.io" 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 07:25:07 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 1tOWRf-0003zq-Dn for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 20 Dec 2024 07:25:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOWQz-0006Ck-Tn; Fri, 20 Dec 2024 01:24:25 -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 1tOWQx-0006C8-4g for help-gnu-emacs@gnu.org; Fri, 20 Dec 2024 01:24:23 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOWQu-0008EL-T7 for help-gnu-emacs@gnu.org; Fri, 20 Dec 2024 01:24:22 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 06EFE94FD16; Fri, 20 Dec 2024 07:23:14 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LoOYaVkzFcj1; Fri, 20 Dec 2024 07:23:10 +0100 (CET) Original-Received: from localhost (unknown [89.151.23.235]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 79112F8B2D4; Fri, 20 Dec 2024 07:23:10 +0100 (CET) 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=195.110.48.8; envelope-from=mbork@mbork.pl; helo=mail.mojserwer.eu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=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:148888 Archived-At: On 2024-12-20, at 03:11, Lewis Creary via Users list for the GNU Emacs text= editor 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 "in= strument" the function that I want to debug, and I'm even having trouble wi= th 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 gl= ad > to hear from you. Hi Lew, instrumenting a function is easy (at least in my Emacs) -- you just evaluate the defun with C-u C-M-x. Then, when the function is called, you will enter Edebug and wll be able to step through it. Hth, --=20 Marcin Borkowski https://mbork.pl https://crimsonelevendelightpetrichor.net/