unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Tracing the caller of a function
@ 2009-11-27 14:15 Nordlöw
  2009-11-27 17:02 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 3+ messages in thread
From: Nordlöw @ 2009-11-27 14:15 UTC (permalink / raw)
  To: help-gnu-emacs

How can I trace the reason for a function being called many times when
I have no clue where? In other words how do I trace the caller of a
function in Emacs?

/Nordlöw


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tracing the caller of a function
  2009-11-27 14:15 Tracing the caller of a function Nordlöw
@ 2009-11-27 17:02 ` Pascal J. Bourguignon
  2009-11-27 21:39   ` Nordlöw
  0 siblings, 1 reply; 3+ messages in thread
From: Pascal J. Bourguignon @ 2009-11-27 17:02 UTC (permalink / raw)
  To: help-gnu-emacs

Nordlöw <per.nordlow@gmail.com> writes:

> How can I trace the reason for a function being called many times when
> I have no clue where? In other words how do I trace the caller of a
> function in Emacs?

Put a breakpoint on that function and watch the backtrace.

M-x debug-on-entry RET that-function RET
(do-something)

-- 
__Pascal Bourguignon__


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Tracing the caller of a function
  2009-11-27 17:02 ` Pascal J. Bourguignon
@ 2009-11-27 21:39   ` Nordlöw
  0 siblings, 0 replies; 3+ messages in thread
From: Nordlöw @ 2009-11-27 21:39 UTC (permalink / raw)
  To: help-gnu-emacs

On Nov 27, 6:02 pm, p...@informatimago.com (Pascal J. Bourguignon)
wrote:
> Nordlöw <per.nord...@gmail.com> writes:
> > How can I trace the reason for a function being called many times when
> > I have no clue where? In other words how do I trace the caller of a
> > function in Emacs?
>
> Put a breakpoint on that function and watch the backtrace.
>
> M-x debug-on-entry RET that-function RET
> (do-something)
>
> --
> __Pascal Bourguignon__

Thanks!

/Nordlöw


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-27 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-27 14:15 Tracing the caller of a function Nordlöw
2009-11-27 17:02 ` Pascal J. Bourguignon
2009-11-27 21:39   ` Nordlöw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).