From unknown Sun Jun 22 04:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21365: Edebug always stops when execution enters an instrumented function Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Aug 2015 20:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 21365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21365@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.144070580110776 (code B ref -1); Thu, 27 Aug 2015 20:04:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Aug 2015 20:03:21 +0000 Received: from localhost ([127.0.0.1]:40596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZV3OK-0002nk-Ub for submit@debbugs.gnu.org; Thu, 27 Aug 2015 16:03:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41047) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZV3OJ-0002na-D9 for submit@debbugs.gnu.org; Thu, 27 Aug 2015 16:03:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZV3OF-0000g2-D9 for submit@debbugs.gnu.org; Thu, 27 Aug 2015 16:03:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV3OF-0000fr-An for submit@debbugs.gnu.org; Thu, 27 Aug 2015 16:03:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV3OE-00009g-DF for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 16:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZV3OD-0000eY-4x for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 16:03:14 -0400 Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]:35472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV3OD-0000e5-0q for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 16:03:13 -0400 Received: by igbjg10 with SMTP id jg10so2578989igb.0 for ; Thu, 27 Aug 2015 13:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0lv7NHuqoqRDuO7LVOQvkAIZkvp/euP6vVbOxZ0fjnw=; b=eWvLL6QrMv5pCGRIcsKWiS3iD0ZeLc3aGn4WHIYrlkUx9nKDgsIEfjm/SsJISZ29Tb yCyXw7MYuCb4fDYs091+Jbkvn7pV1tUnRdtx8E8BlQeyWs5FfwTv9yqHtZvlo5AI3GNd +hmaoGmz2NdFKt0/OuvaBxtZvjR5aKR/QzxjUoxdPXrZgnHdeY01LTqqydAjEBIZcECM kNSuSD3arbkFsYRPD1hgpqBE2Y7o5tTLYn6qekP3xs7bg2XrfKmofCvOC8x2b5EyBbZm GKkeCXR66lrI1yzo1ZJwrQheTWjvoZpEobTwIOzzNYW6Uyu9tunl3NEgNn/QQBS8sipJ z5ng== MIME-Version: 1.0 X-Received: by 10.50.129.5 with SMTP id ns5mr413709igb.40.1440705792145; Thu, 27 Aug 2015 13:03:12 -0700 (PDT) Received: by 10.36.25.67 with HTTP; Thu, 27 Aug 2015 13:03:12 -0700 (PDT) Date: Thu, 27 Aug 2015 22:03:12 +0200 Message-ID: From: Paul Pogonyshev Content-Type: multipart/alternative; boundary=047d7b3a9914f7810b051e50741a X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7b3a9914f7810b051e50741a Content-Type: text/plain; charset=UTF-8 This more of a feature request: make edebug stop when entering such a function _optionally_. Usecase: I want to debug certain function, but only when it takes specific execution route. I instrument the function, set a breakpoint where I want to debug it. But in addition to the breakpoint, edebug also pauses each time the function is entered and I see no way to disable it. In some cases this is a mere annoyance, in others it makes debugging impossible. For example, currently I want to debug 'auto-revert-handler' which somehow reverts buffer where both Auto Revert and Auto Revert Tail modes are disabled. However, I can never make Edebug stop on (message "Reverting buffer `%s'." (buffer-name))) line (though I see it _is_ executed, if only from the *Messages* buffer). It always stops at the beginning of the function instead. Paul --047d7b3a9914f7810b051e50741a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This more of a feature request: make edebug stop when ente= ring such a function _optionally_.

Usecase: I want to de= bug certain function, but only when it takes specific execution route. I in= strument the function, set a breakpoint where I want to debug it. But in ad= dition to the breakpoint, edebug also pauses each time the function is ente= red and I see no way to disable it.

In some cases this i= s a mere annoyance, in others it makes debugging impossible. For example, c= urrently I want to debug 'auto-revert-handler' which somehow revert= s buffer where both Auto Revert and Auto Revert Tail modes are disabled. Ho= wever, I can never make Edebug stop on

=C2=A0 =C2= =A0=C2=A0(message "Reverting buffer `%s'." (buffer-name)))

line (though I see it _is_ executed, if only from th= e *Messages* buffer).=C2=A0 It always stops at the beginning of the functio= n instead.

Paul

--047d7b3a9914f7810b051e50741a-- From unknown Sun Jun 22 04:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21365: Edebug always stops when execution enters an instrumented function Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Sep 2015 10:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21365@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.144110192120939 (code B ref -1); Tue, 01 Sep 2015 10:06:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Sep 2015 10:05:21 +0000 Received: from localhost ([127.0.0.1]:44733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWiRM-0005Re-Ca for submit@debbugs.gnu.org; Tue, 01 Sep 2015 06:05:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49282) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZWiRK-0005RW-At for submit@debbugs.gnu.org; Tue, 01 Sep 2015 06:05:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWiRJ-0007fa-2y for submit@debbugs.gnu.org; Tue, 01 Sep 2015 06:05:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33577) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWiRJ-0007fI-0n for submit@debbugs.gnu.org; Tue, 01 Sep 2015 06:05:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWiRI-0004uz-1s for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2015 06:05:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZWiRE-0007Qb-S1 for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2015 06:05:15 -0400 Received: from mail-pa0-x22d.google.com ([2607:f8b0:400e:c03::22d]:33747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZWiRE-0007ML-LU for bug-gnu-emacs@gnu.org; Tue, 01 Sep 2015 06:05:12 -0400 Received: by paczk9 with SMTP id zk9so24090015pac.0 for ; Tue, 01 Sep 2015 03:05:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:in-reply-to:date:message-id:mime-version :content-type; bh=zYUOTRFo0XPciIAwYtSPUGJMuuheAMtYqpgkVFBMGnw=; b=xqh1vzfYO/+A6nEVpXKll6G6P/+/87H1Xt7s6Z7/blaI4QGrSipWe40X26V8bQjUmh vthh6jRfw/7oJIIcQ0vgSshjy0863mRgtAJ/zZj/O9HG7dJxNNRFtzAc4fhkUsixtisc w9q35EZygFax55r9v73YHqrAVSqT8B2T6Fg6C3i4IZxcgIMii+MHD0ZKxiyeBQFsHnqa SJ9LmkDHBxSSa0Kf/z/jFUIG1joYY/Pvy3cOibeckuR5hvg53Oeu+1MT5itu4bKCdWSr CerY4dursVP/jJS+V02AUV2dcA4B/5xeofHBKdCjEzb60ETsLPfQEQt2fcGrcxdhClQe 5BOw== X-Received: by 10.66.118.39 with SMTP id kj7mr45385316pab.115.1441101910583; Tue, 01 Sep 2015 03:05:10 -0700 (PDT) Received: from localhost (ppp118-209-122-14.lns20.mel4.internode.on.net. [118.209.122.14]) by smtp.gmail.com with ESMTPSA id tq6sm17492507pbc.57.2015.09.01.03.05.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 01 Sep 2015 03:05:09 -0700 (PDT) References: From: Alexis In-reply-to: Date: Tue, 01 Sep 2015 20:05:03 +1000 Message-ID: <87twree9ps.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Paul Pogonyshev writes: > This more of a feature request: make edebug stop when entering > such a function _optionally_. > > Usecase: I want to debug certain function, but only when it > takes specific execution route. I instrument the function, set a > breakpoint where I want to debug it. But in addition to the > breakpoint, edebug also pauses each time the function is entered > and I see no way to disable it. Perhaps i'm misunderstanding you, but is setting the value of `edebug-initial-mode` what you're after? https://www.gnu.org/software/emacs/manual/html_node/elisp/Edebug-Options.html#Edebug-Options What happens if you set the value of that variable to 'go? Alexis. From unknown Sun Jun 22 04:02:02 2025 X-Loop: help-debbugs@gnu.org Subject: bug#21365: Edebug always stops when execution enters an instrumented function References: Resent-From: Alan Mackenzie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 20 Sep 2015 22:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21365 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 21365@debbugs.gnu.org Cc: Paul Pogonyshev Received: via spool by 21365-submit@debbugs.gnu.org id=B21365.144278831223580 (code B ref 21365); Sun, 20 Sep 2015 22:32:01 +0000 Received: (at 21365) by debbugs.gnu.org; 20 Sep 2015 22:31:52 +0000 Received: from localhost ([127.0.0.1]:39300 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zdn9E-00068G-AE for submit@debbugs.gnu.org; Sun, 20 Sep 2015 18:31:52 -0400 Received: from mail.muc.de ([193.149.48.3]:28124) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zdn9B-000686-2E for 21365@debbugs.gnu.org; Sun, 20 Sep 2015 18:31:50 -0400 Received: (qmail 1665 invoked by uid 3782); 20 Sep 2015 22:31:47 -0000 Date: 20 Sep 2015 22:31:47 -0000 Message-ID: <20150920223147.1664.qmail@mail.muc.de> From: Alan Mackenzie Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.1-RELEASE-p16 (amd64)) X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.0 (/) Hello, Paul. In article you wrote: > [-- text/plain, encoding 7bit, charset: UTF-8, 20 lines --] > This more of a feature request: make edebug stop when entering such a > function _optionally_. > Usecase: I want to debug certain function, but only when it takes specific > execution route. I instrument the function, set a breakpoint where I want > to debug it. But in addition to the breakpoint, edebug also pauses each > time the function is entered and I see no way to disable it. > In some cases this is a mere annoyance, in others it makes debugging > impossible. For example, currently I want to debug 'auto-revert-handler' > which somehow reverts buffer where both Auto Revert and Auto Revert Tail > modes are disabled. However, I can never make Edebug stop on > (message "Reverting buffer `%s'." (buffer-name))) > line (though I see it _is_ executed, if only from the *Messages* buffer). > It always stops at the beginning of the function instead. Yes, I sometimes feel this annoyance too. Looking at the source code in edebug.el, it seems this problem was sensed by Eric Raymond, and he was working on it in May 1992. (!!!!) The function `edebug-set-initial-mode' was commented out by edebug's original author Daniel LaLiberte on 24th March 1994. 21 years later, the reasons for this commenting out have probably been lost. (Takes hat off to git blame.) I don't see any overwhelming reasons why ESR's idea and code couldn't be resurrected. > Paul -- Alan Mackenzie (Nuremberg, Germany). From unknown Sun Jun 22 04:02:02 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Paul Pogonyshev Subject: bug#21365: closed (Re: bug#21365: Edebug always stops when execution enters an instrumented function) Message-ID: References: <20150922125648.99303.qmail@mail.muc.de> X-Gnu-PR-Message: they-closed 21365 X-Gnu-PR-Package: emacs Reply-To: 21365@debbugs.gnu.org Date: Tue, 22 Sep 2015 12:57:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1442926624-2778-1" This is a multi-part message in MIME format... ------------=_1442926624-2778-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #21365: Edebug always stops when execution enters an instrumented function which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 21365@debbugs.gnu.org. --=20 21365: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D21365 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1442926624-2778-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 21365-done) by debbugs.gnu.org; 22 Sep 2015 12:56:54 +0000 Received: from localhost ([127.0.0.1]:41352 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZeN7t-0000iU-5A for submit@debbugs.gnu.org; Tue, 22 Sep 2015 08:56:53 -0400 Received: from mail.muc.de ([193.149.48.3]:62047) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZeN7p-0000iI-7b for 21365-done@debbugs.gnu.org; Tue, 22 Sep 2015 08:56:50 -0400 Received: (qmail 99304 invoked by uid 3782); 22 Sep 2015 12:56:48 -0000 Date: 22 Sep 2015 12:56:48 -0000 Message-ID: <20150922125648.99303.qmail@mail.muc.de> From: Alan Mackenzie To: 21365-done@debbugs.gnu.org Subject: Re: bug#21365: Edebug always stops when execution enters an instrumented function Organization: muc.de e.V. In-Reply-To: X-Newsgroups: gnu.emacs.bug User-Agent: tin/2.3.1-20141224 ("Tallant") (UNIX) (FreeBSD/10.1-RELEASE-p16 (amd64)) X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 21365-done Cc: Paul Pogonyshev X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > This more of a feature request: make edebug stop when entering such a > function _optionally_. Fixed by amending the documentation in edebug.texi in master. -- Alan Mackenzie (Nuremberg, Germany). ------------=_1442926624-2778-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 27 Aug 2015 20:03:21 +0000 Received: from localhost ([127.0.0.1]:40596 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZV3OK-0002nk-Ub for submit@debbugs.gnu.org; Thu, 27 Aug 2015 16:03:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41047) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZV3OJ-0002na-D9 for submit@debbugs.gnu.org; Thu, 27 Aug 2015 16:03:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZV3OF-0000g2-D9 for submit@debbugs.gnu.org; Thu, 27 Aug 2015 16:03:19 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:60581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV3OF-0000fr-An for submit@debbugs.gnu.org; Thu, 27 Aug 2015 16:03:15 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV3OE-00009g-DF for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 16:03:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZV3OD-0000eY-4x for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 16:03:14 -0400 Received: from mail-ig0-x233.google.com ([2607:f8b0:4001:c05::233]:35472) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZV3OD-0000e5-0q for bug-gnu-emacs@gnu.org; Thu, 27 Aug 2015 16:03:13 -0400 Received: by igbjg10 with SMTP id jg10so2578989igb.0 for ; Thu, 27 Aug 2015 13:03:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=0lv7NHuqoqRDuO7LVOQvkAIZkvp/euP6vVbOxZ0fjnw=; b=eWvLL6QrMv5pCGRIcsKWiS3iD0ZeLc3aGn4WHIYrlkUx9nKDgsIEfjm/SsJISZ29Tb yCyXw7MYuCb4fDYs091+Jbkvn7pV1tUnRdtx8E8BlQeyWs5FfwTv9yqHtZvlo5AI3GNd +hmaoGmz2NdFKt0/OuvaBxtZvjR5aKR/QzxjUoxdPXrZgnHdeY01LTqqydAjEBIZcECM kNSuSD3arbkFsYRPD1hgpqBE2Y7o5tTLYn6qekP3xs7bg2XrfKmofCvOC8x2b5EyBbZm GKkeCXR66lrI1yzo1ZJwrQheTWjvoZpEobTwIOzzNYW6Uyu9tunl3NEgNn/QQBS8sipJ z5ng== MIME-Version: 1.0 X-Received: by 10.50.129.5 with SMTP id ns5mr413709igb.40.1440705792145; Thu, 27 Aug 2015 13:03:12 -0700 (PDT) Received: by 10.36.25.67 with HTTP; Thu, 27 Aug 2015 13:03:12 -0700 (PDT) Date: Thu, 27 Aug 2015 22:03:12 +0200 Message-ID: Subject: Edebug always stops when execution enters an instrumented function From: Paul Pogonyshev To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=047d7b3a9914f7810b051e50741a X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --047d7b3a9914f7810b051e50741a Content-Type: text/plain; charset=UTF-8 This more of a feature request: make edebug stop when entering such a function _optionally_. Usecase: I want to debug certain function, but only when it takes specific execution route. I instrument the function, set a breakpoint where I want to debug it. But in addition to the breakpoint, edebug also pauses each time the function is entered and I see no way to disable it. In some cases this is a mere annoyance, in others it makes debugging impossible. For example, currently I want to debug 'auto-revert-handler' which somehow reverts buffer where both Auto Revert and Auto Revert Tail modes are disabled. However, I can never make Edebug stop on (message "Reverting buffer `%s'." (buffer-name))) line (though I see it _is_ executed, if only from the *Messages* buffer). It always stops at the beginning of the function instead. Paul --047d7b3a9914f7810b051e50741a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This more of a feature request: make edebug stop when ente= ring such a function _optionally_.

Usecase: I want to de= bug certain function, but only when it takes specific execution route. I in= strument the function, set a breakpoint where I want to debug it. But in ad= dition to the breakpoint, edebug also pauses each time the function is ente= red and I see no way to disable it.

In some cases this i= s a mere annoyance, in others it makes debugging impossible. For example, c= urrently I want to debug 'auto-revert-handler' which somehow revert= s buffer where both Auto Revert and Auto Revert Tail modes are disabled. Ho= wever, I can never make Edebug stop on

=C2=A0 =C2= =A0=C2=A0(message "Reverting buffer `%s'." (buffer-name)))

line (though I see it _is_ executed, if only from th= e *Messages* buffer).=C2=A0 It always stops at the beginning of the functio= n instead.

Paul

--047d7b3a9914f7810b051e50741a-- ------------=_1442926624-2778-1--