From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: Re: debugging elisp ? Date: Sun, 9 Jul 2017 22:54:48 +0900 Message-ID: <0A33B86D-70B9-4E6E-B226-4639282FBAC8@gmail.com> References: <87a84evtaj.fsf@jane> <878tjxx1m4.fsf@jane> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1499608595 5532 195.159.176.226 (9 Jul 2017 13:56:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 9 Jul 2017 13:56:35 +0000 (UTC) To: Emacs-Devel devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 09 15:56:31 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 1dUChK-0001AM-G1 for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 15:56:30 +0200 Original-Received: from localhost ([::1]:36292 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUChP-0005nR-T7 for ged-emacs-devel@m.gmane.org; Sun, 09 Jul 2017 09:56:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dUCgl-0005n8-OK for emacs-devel@gnu.org; Sun, 09 Jul 2017 09:55:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dUCgi-0001u2-Me for emacs-devel@gnu.org; Sun, 09 Jul 2017 09:55:55 -0400 Original-Received: from mail-pf0-f172.google.com ([209.85.192.172]:35035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dUCgi-0001te-GF for emacs-devel@gnu.org; Sun, 09 Jul 2017 09:55:52 -0400 Original-Received: by mail-pf0-f172.google.com with SMTP id c73so37516986pfk.2 for ; Sun, 09 Jul 2017 06:55:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=inezHevQkf/7fIEUs5PngvPBta8NKL7zZ65FOMNfJgE=; b=pMXd28kqCojE+QHQgiT7COIziE/byyu+NsRtFPTKdk+ijojWO1WgDgOx+VHu40YxPS sFQk8J9Rr6C56RYeBM0I3bIMwm81CWwY92I1vuqPRfkJwTItwELaZotc8ryL0Dl8XEUW chJGnfo9W/vnmgJuKM4IKWaMO8FAil7PC28AvxarXPXYGmvvoDjoTh54+98e2GOJA6Lh BgdstrBS+GFqQtH2Pi3WazLDTwCkdCqxEI0bXE7fd572KqpppUwpvr9k/++MXNJ4xEtp BVxrSCC+eHNwA8i9a4aVoS8nE5Z4vUaB3AZyv5CUdbBtEfRFysr8aNS6MITmwY++KPuu 4+dQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=inezHevQkf/7fIEUs5PngvPBta8NKL7zZ65FOMNfJgE=; b=l7DyH9SubPhBi249D+ijhldxdcaeN+Qm5fUmuTU0TV2CRmrQNgrRkr/HSqNdYraSbO 8TO9hISbmjKmXFSEaMkzMkOzWp4ITYkkh12NNUqHrvYboU7QAqILz5Iw4Pewsv0KISAH iyGpDuoVuHR4I43nvJBGwaeSVJ2tVK16EFhSuhuOKgJfrns3v5yLZ8KB6Yl5DD6nhPr5 lMXpfTTf7ytWq+tXoqeAJNPixfUDStaziNDOs6dqZR94cKCoROcZIlqMHqsgjjj4EVXB 2i9F5KQ+n/onXz9/JGOl05GnCx6DtCiqwyCOk+c0dLOzOJ66iemIg1XPQXmIVyO725/V FrJA== X-Gm-Message-State: AIVw113Abmi9ht/oXiVyR+lCRmcR//oSeu4ZYHWT6QXLYj6iiP7dCyUS igB+ReGEESNlctUTmhY= X-Received: by 10.84.224.73 with SMTP id a9mr13003757plt.25.1499608491176; Sun, 09 Jul 2017 06:54:51 -0700 (PDT) Original-Received: from [192.168.24.55] (pl2587.ag0304.nttpc.ne.jp. [128.53.196.27]) by smtp.gmail.com with ESMTPSA id d70sm20189690pfg.132.2017.07.09.06.54.49 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 09 Jul 2017 06:54:50 -0700 (PDT) In-Reply-To: <878tjxx1m4.fsf@jane> X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.192.172 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:216364 Archived-At: I tried all the proposed solutions but I don't get what I'd like to = have. What I'd like to have is: I run package in a window and in a different window I have all the = variables/messages etc. appearing as I work inside package. Maybe my "step by step" wording did not reflect what I really meant. Now = that I see how it works, it is way too cumbersome for what I want to do, = which is basically have a view on all the internal data as the package = is run. Jean-Christophe > On Jul 9, 2017, at 20:59, Marcin Borkowski wrote: >=20 >=20 > On 2017-07-09, at 13:48, Noam Postavsky = wrote: >=20 >> On Sun, Jul 9, 2017 at 6:49 AM, Jean-Christophe Helary >> wrote: >>>=20 >>> 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. >>>=20 >>> Does that mean that I have to mark all the package functions for = debugging ? >>=20 >> Yes, you can do that with the following code: >>=20 >> (require 'edebug) >> (require 'package) >> (mapatoms (lambda (s) (and (fboundp s) >> (string-match-p "\\`package" (symbol-name s))) >> (edebug-instrument-function s))) >=20 > Won't > M-x edebug-all-defuns > and then > M-x eval-buffer > in package.el work as well (and be easier)? >=20 > Best, >=20 > --=20 > Marcin Borkowski