* bug#21365: Edebug always stops when execution enters an instrumented function
@ 2015-08-27 20:03 Paul Pogonyshev
2015-09-01 10:05 ` Alexis
[not found] ` <mailman.28.1440705848.19560.bug-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: Paul Pogonyshev @ 2015-08-27 20:03 UTC (permalink / raw)
To: 21365
[-- Attachment #1: Type: text/plain, Size: 847 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 1031 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#21365: Edebug always stops when execution enters an instrumented function
2015-08-27 20:03 bug#21365: Edebug always stops when execution enters an instrumented function Paul Pogonyshev
@ 2015-09-01 10:05 ` Alexis
[not found] ` <mailman.28.1440705848.19560.bug-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Alexis @ 2015-09-01 10:05 UTC (permalink / raw)
To: 21365
Paul Pogonyshev <pogonyshev@gmail.com> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.28.1440705848.19560.bug-gnu-emacs@gnu.org>]
* bug#21365: Edebug always stops when execution enters an instrumented function
[not found] ` <mailman.28.1440705848.19560.bug-gnu-emacs@gnu.org>
@ 2015-09-20 22:31 ` Alan Mackenzie
2015-09-22 12:56 ` Alan Mackenzie
1 sibling, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2015-09-20 22:31 UTC (permalink / raw)
To: 21365; +Cc: Paul Pogonyshev
Hello, Paul.
In article <mailman.28.1440705848.19560.bug-gnu-emacs@gnu.org> 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).
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#21365: Edebug always stops when execution enters an instrumented function
[not found] ` <mailman.28.1440705848.19560.bug-gnu-emacs@gnu.org>
2015-09-20 22:31 ` Alan Mackenzie
@ 2015-09-22 12:56 ` Alan Mackenzie
1 sibling, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2015-09-22 12:56 UTC (permalink / raw)
To: 21365-done; +Cc: Paul Pogonyshev
> 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).
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-09-22 12:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-27 20:03 bug#21365: Edebug always stops when execution enters an instrumented function Paul Pogonyshev
2015-09-01 10:05 ` Alexis
[not found] ` <mailman.28.1440705848.19560.bug-gnu-emacs@gnu.org>
2015-09-20 22:31 ` Alan Mackenzie
2015-09-22 12:56 ` Alan Mackenzie
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.