From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.devel Subject: Re: debugging elisp ? Date: Sun, 09 Jul 2017 13:59:15 +0200 Message-ID: <878tjxx1m4.fsf@jane> References: <87a84evtaj.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1499601583 29677 195.159.176.226 (9 Jul 2017 11:59:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Jul 2017 11:59:43 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: Jean-Christophe Helary , Emacs-Devel devel To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 09 13:59:39 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dUAs7-0007Al-5A for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 13:59:31 +0200 Original-Received: from localhost ([::1]:35764 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUAsC-0006JP-Fg for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 07:59:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUArz-0006IA-3U for emacs-devel@gnu.org; Sun, 09 Jul 2017 07:59:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUArw-0006ft-2e for emacs-devel@gnu.org; Sun, 09 Jul 2017 07:59:23 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:34600) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUArv-0006fb-S8 for emacs-devel@gnu.org; Sun, 09 Jul 2017 07:59:20 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 07C59E62B7; Sun, 9 Jul 2017 13:59:19 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u_BrtvRe2xoR; Sun, 9 Jul 2017 13:59:16 +0200 (CEST) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 9E5FCE626E; Sun, 9 Jul 2017 13:59:16 +0200 (CEST) In-reply-to: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:216360 Archived-At: On 2017-07-09, at 13:48, Noam Postavsky wrote: > On Sun, Jul 9, 2017 at 6:49 AM, Jean-Christophe Helary > wrote: >> >> My limited understanding of the documentation tells me that I can't keep the debugger working during the whole package session. I can call it on package-list-packages and it will run until the package list is displayed, and then it quits. >> >> Does that mean that I have to mark all the package functions for debugging ? > > Yes, you can do that with the following code: > > (require 'edebug) > (require 'package) > (mapatoms (lambda (s) (and (fboundp s) > (string-match-p "\\`package" (symbol-name s))) > (edebug-instrument-function s))) Won't M-x edebug-all-defuns and then M-x eval-buffer in package.el work as well (and be easier)? Best, -- Marcin Borkowski