From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to highlight the offending line of code with edebug Date: Fri, 23 Dec 2022 09:20:04 +0200 Message-ID: <83fsd68u3f.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34281"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Davin Pearson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Dec 23 08:20:54 2022 Return-path: Envelope-to: ged-emacs-devel@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 1p8cMQ-0008kH-Ac for ged-emacs-devel@m.gmane-mx.org; Fri, 23 Dec 2022 08:20:54 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8cLr-0007FM-40; Fri, 23 Dec 2022 02:20:19 -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 1p8cLp-0007F8-TS for emacs-devel@gnu.org; Fri, 23 Dec 2022 02:20:17 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8cLp-0008MZ-LL; Fri, 23 Dec 2022 02:20:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dARgCxFwd0ZSFUdNLGQpTArEq9MIg1vZ1/xVkxtBDG4=; b=oLwA1joU9rMq p++6cwX0dj/nZHbhrBk3mlCjF2hn4CyykDOoZC7Zxw4z/fDOYLcb10xqqxADkbxWLTB2+DDaAwAyd q/lfHpjkwWn+gMHBCOsYOLdsUoS8f3MgGMorUyUbCy/0iptlW8te3M2j6oFlrJUgPKyjLcthUXQkE bTjkWqm4IwuDLepPLE0EvGu+7ToiRtntfga/gQps7G3852XFFXIFYNvpYJ50hlRsDTh4ppDMQkGMt Q2WTOYu+pBswjK9vFmW3p2Dm5VvmbPyL3RCID5+WpX4PW4haAkt+D/O8S6Z8SkaV+NgvIk7MFDSfd x7j2ufGxL/NqRutiGulDQg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8cLp-0000gC-5X; Fri, 23 Dec 2022 02:20:17 -0500 In-Reply-To: (message from Davin Pearson on Fri, 23 Dec 2022 10:13:33 +1300) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301809 Archived-At: > From: Davin Pearson > Date: Fri, 23 Dec 2022 10:13:33 +1300 > > When I write the following code: > > (progn > (setq edebug-on-error t) > (setq edebug-all-defs t)) > > (defun foo () > tomcat > ) > (foo) > > How do I invoke the edebug debugger when you get an error: I don't think you can. Edebug requires that you instrument the function(s) you want to debug in advance.