From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joel Reicher Newsgroups: gmane.emacs.help Subject: Re: Learning Edebug Date: Sat, 21 Dec 2024 17:17:07 +1100 Message-ID: <86frmhk1b0.fsf@gmail.com> References: <130443705.1910512.1734664285448.ref@mail.yahoo.com> <130443705.1910512.1734664285448@mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13578"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) 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 Sat Dec 21 07:17:59 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 1tOsoI-0003Nx-9s for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 21 Dec 2024 07:17:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOsnk-0006XT-Pi; Sat, 21 Dec 2024 01:17: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 1tOsnb-0006US-I9 for help-gnu-emacs@gnu.org; Sat, 21 Dec 2024 01:17:16 -0500 Original-Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOsna-0007a7-3g for help-gnu-emacs@gnu.org; Sat, 21 Dec 2024 01:17:15 -0500 Original-Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-7fd5248d663so1986389a12.0 for ; Fri, 20 Dec 2024 22:17:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734761832; x=1735366632; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sY56/xjLZo0HIHFbp3h7MGzvierAZSBxBKY4dorU5N0=; b=mbHeG5lxH0472CJ14iUYp/cWYM9JDOeCdc1xaPU+1VIYAGwQKaebpY/KkGkWHZGKAC WxVNvyBeTTSsNjjmjgOPx+1+9JMyF+VXMrBNWNcy4fJ5gp3WIZONW/bQsHUbe11geX00 /36nz0qCFYD3kCEsrgQRx8tlsxW6TB70qlRzKcagZK74YiPbxzKJGHZ0FtCIvgXPYHng UUkgvqlHfrPtbNEmHgw4acxSv2P1eJi+YAb0sUBjFwr9e1wyaJZ55vfqb01bs/4+tCRW ld8ewQwVV+0y4VnhzynePsFxFVYZ8stYt5si7JWhsOF+z1XzDvh/P3TPinm3MkF+BifB rO1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734761832; x=1735366632; h=content-transfer-encoding:mime-version:user-agent: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=sY56/xjLZo0HIHFbp3h7MGzvierAZSBxBKY4dorU5N0=; b=MIjLfJ61ujYeTt7VNWxP9COgmigEughrEjWRghSBRddYxBohZZKeiS/2YX8yvyo/Jq 1XOlzvpH0u9T9Qdag5AF6JkAK2GGs2GSDA3NhEKhmulPbKwAGEH66IIlyHKRMIY73A9Q u4lW6TAPN0411eGujwKpEVfFB0ol4tW+m/61zMzcD40o//lTJuUbBZRaLFRJ3csw9EHn 691KzIFcTt92ejLVESykEIaVvMjphVh5wZn/RapASsIoOMqhm6vH8Lct+T7xh/8HdT3Q sXt6lmSOJQWSfXzN+56+ngGM3jTONTnXi29upFBPqjWvfAivQqapH3btTq80gixO3F+6 xiVQ== X-Gm-Message-State: AOJu0YyTtqie9lwVOtCCb5lo2uLyf2xMWQ8wXepkqJFsuuGMdkEHbJ7S FZSFvSeDfIJCdIhbl37F/Z5QzK1uSUv9W1JGUZPnbWTpouR9cJcO X-Gm-Gg: ASbGncua3LATVwKGKXTJZTCoTKupqKvsBlXsDZRy1LTlxj59B8PwL0noJcPJDbEyire V5wJwNsnRyKPaVTaGmNGMAW2RcR6wdRmNu2Z61878pKP6c3Vo9hWeniG2G4XLjpDeyzFMZeGof8 NrZt16d1RwIHAr2io5vBHDjrW5DjM/Y5PiuFk0GshsnAhqgfiMJIguLat0FL4ibGZF+Etl3F5fS 6zwtvT4DKOQGpKscRmci4/4mpjlpYsu9MI7da5yHaSjGpVJuFq5csOoP0e190x45/IFFlpadP0p cNb8Okw4PrpkynVeo/7d6yxb87JqZbQtVLVmM/pWaP44 X-Google-Smtp-Source: AGHT+IEDbAODB6PUpU54bUxqaQEVAeMiZ/xYXBCA1LD4OZqoTLceIqA4Hv+La+fjyikIsULO5tM61g== X-Received: by 2002:a17:903:2c6:b0:216:2a36:5b2a with SMTP id d9443c01a7336-219e6f25e3bmr83789415ad.47.1734761832323; Fri, 20 Dec 2024 22:17:12 -0800 (PST) Original-Received: from LAPTOP-ACR66VVN (139-218-25-158.sta.wbroadband.net.au. [139.218.25.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dc9f51b5sm38321965ad.184.2024.12.20.22.17.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Dec 2024 22:17:11 -0800 (PST) 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=2607:f8b0:4864:20::52f; envelope-from=joel.reicher@gmail.com; helo=mail-pg1-x52f.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: 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:148902 Archived-At: Lewis Creary via Users list for the GNU Emacs text editor=20 writes: > I'm trying to learn how to use the Emacs lisp function Edebug,=20 > but so far am not having any success.=A0 The documentation says=20 > that I need to "instrument" the function that I want to debug,=20 > and I'm even having trouble with that. > I've been programming in Emacs Lisp for over a decade, and have=20 > always found that print statements were sufficient for debugging=20 > my programs. I think the other replies have good practical info, but just in=20 case some conceptual info is useful, instrumenting code is=20 basically what you've been doing with print statements. When=20 edebug instruments the code and inserts its own debugging=20 snippets, you can execute the code normally and the=20 instrumentation that edebug inserted will call the edebug=20 functionality. The built-in lisp debugger works the "other" way; it affects the=20 evaluation machinery rather than the code being evaluated. Regards, - Joel