all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

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.