From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: How to highlight the offending line of code with edebug Date: Thu, 22 Dec 2022 12:45:07 +1300 Message-ID: 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="13840"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 22 00:46:15 2022 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 1p88mt-0003TL-1y for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 22 Dec 2022 00:46:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p88m9-0007o7-M7; Wed, 21 Dec 2022 18:45:29 -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 1p88m7-0007nX-9o for help-gnu-emacs@gnu.org; Wed, 21 Dec 2022 18:45:27 -0500 Original-Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p88m5-0004K7-Gg for help-gnu-emacs@gnu.org; Wed, 21 Dec 2022 18:45:26 -0500 Original-Received: by mail-pl1-x62a.google.com with SMTP id s7so424438plk.5 for ; Wed, 21 Dec 2022 15:45:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=7u/N6jy1o0885q11FG2c15YbuYk7PHDq36MYnWn/1PQ=; b=h4CfddWsVCEA/j4+xHYyUjpLwuNR96rIIIncKt41lxOXsxXWTLz4JcpoYAMV/51Zvt xE1Uv1hTaRNamAFrV7Slnvb2o7Pwd7NMba5RotWicAwf2Giv5Zkv3CrXUNHaU+agPilw Sen2R0CR8vLZv8asKsqeRE+uwblFWeYCdx2CTjj2yuYZp/jkGIW5mYF+zRGV/yGj16e4 P+rpSVtDeTJG0mMBVk7JUCmd0myX+zpdsYeRIuPGXgj9GWKUPrVYOdXQ948Kr8D00sDr I+TIIpUfIjuCYOY27zc21tuzJ83mntgbLf4zazVcSbdamrN/n6r6w7Xnw3H8oDL+1ZGk EvrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=7u/N6jy1o0885q11FG2c15YbuYk7PHDq36MYnWn/1PQ=; b=CsmvI3nmNLKtREnHNwPy5jUjDZX8qLOLslRDDOqAlyVcu6U2rGWsdifKa537NO/Ylk mEWc10bi2FXgu5jHroT06I7K3aVa2iqLCa56LaKqsqWwfQ3o+DgUTON3H1ft2IHhKOW0 pq7D9+LhWiD2ShOz0ZrBKvZrbGorToYvgVYYvQyEc1n7JMktJF8B4vkuk1B+ZEeabPrs IZ+9p+0HU9v6+BZN4D5FDvh0Xz30IEF6ujwk2y6/JH78RP59eVBKm++ri72Wm0iG+d/E ObZkFQJ7p9AJzWTq7moapnxxi6jy0+d+vKyF4oZjyVCmTVBoSWCPrjsed5YkjlWBNeoV KzEQ== X-Gm-Message-State: AFqh2kqxpFLUxkBMBwh8iWsopUDFGJGwBbIXx3TwgL45Rv8ui5D2EgRj dwSvMFavREcmF41ivRPmljZvpn9zEIuzgkOK/yaB8TfFR4k= X-Google-Smtp-Source: AMrXdXtZvmjtHqIwr4NIViZjm3lpVMABGkPg1AZGHET5uE4I6erUBM+rrQP3eeIZmZv0GMlmZWDu1vIiw+p04Dnug1U= X-Received: by 2002:a17:90a:b702:b0:219:e176:7079 with SMTP id l2-20020a17090ab70200b00219e1767079mr313484pjr.196.1671666323312; Wed, 21 Dec 2022 15:45:23 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=davin.pearson@gmail.com; helo=mail-pl1-x62a.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:141893 Archived-At: When I write the following code: (progn (setq edebug-on-error t) (setq edebug-all-defs t)) (foo) (defun foo () tomcat ) How do I invoke the edebug debugger when you get an error: Symbol=E2=80=99s value as variable is void: tomcat I want the debugger to point to the offending line of code, in this case tomcat. The way that I currently find errors such as these is to put checkpoints on every second line except the last line of defuns. However this approach is rather cumbersome as I have to add a lot of checkpoints and then remove them when I find the bug. *Davin.*