From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#50629: 28.0.50; hard to debug an uncaught error with ert Date: Sat, 27 Aug 2022 15:44:12 +0200 Message-ID: References: <15445.1631834888@alto> <87pmgncjvg.fsf@gnus.org> <871qt1aklk.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22981"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) Cc: Mike Kupfer , 50629@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 27 15:45:30 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRw7r-0005im-KH for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 15:45:27 +0200 Original-Received: from localhost ([::1]:50510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRw7q-0004Ly-JY for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Aug 2022 09:45:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRw7S-0004JQ-Rf for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 09:45:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37522) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRw7S-0005YM-1d for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 09:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRw7R-0008AN-Nk for bug-gnu-emacs@gnu.org; Sat, 27 Aug 2022 09:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Aug 2022 13:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 50629-submit@debbugs.gnu.org id=B50629.166160786231288 (code B ref 50629); Sat, 27 Aug 2022 13:45:01 +0000 Original-Received: (at 50629) by debbugs.gnu.org; 27 Aug 2022 13:44:22 +0000 Original-Received: from localhost ([127.0.0.1]:55492 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRw6o-00088a-6h for submit@debbugs.gnu.org; Sat, 27 Aug 2022 09:44:22 -0400 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:46941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRw6m-00088N-3V for 50629@debbugs.gnu.org; Sat, 27 Aug 2022 09:44:20 -0400 Original-Received: by mail-wr1-f53.google.com with SMTP id e20so4844561wri.13 for <50629@debbugs.gnu.org>; Sat, 27 Aug 2022 06:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc; bh=tF59rFgJUu7oVp7yqINMPN1pTZ5f7+n/oQNttYNVAz8=; b=a+OepwN3IYP8DQjwgFVG/fe+SuyljbonKoDC7WRJJ5Tqt+GkG8j3gUyVMyxFzCwkSk ezK/8kroTDNvWjD3FZe77+nn5f+/YUkiyY0kdJf3M43ABabSrJTjwHZJaYjqqizFOi9z 4V5a6wJlgSfNTnm3Zo3LBQnoin93zHbySsXKcFpbObnWG8G6k7u9n20srMoETt2LkcWc Ckx2WQ/YwQbGlqqeH9xYmi7Vu7LMsdVvh4fzq1E4PZdhKkftVsR1ot4w16uo2aoIeAhD WPdw0FR5JUDb/4sJLpAE6sX7/1LvyvoHKVe+F5VHyrK0eXmFXa4cRLHuRAbJkA8HKcf6 hefw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=tF59rFgJUu7oVp7yqINMPN1pTZ5f7+n/oQNttYNVAz8=; b=aay6db4fR76wQOd7azBS1u+NRFptB6EOKRqXr3dZumMlZEJSFQLwf8TqHnD71e0Cgf p5zauDnV5GoKTteB5z6htJceKt293dHJnQDZ8x4W7vCVv9dkL038QoVeeVpw7ItFRk+l BiJC0cfa/x+IrcPKOGSpWUqCc3ULd3sL5Sp1KVH0dtSnqDvfMVnuQ0XzqUWSBAZNsIC6 VjwsZCU4VGD6ElAG50OnrpkyQ8PZAs2Wy5jgzLa0y9TjAOb93Fli1BoCsLWErudgZ0YE s7nIHDcGukXtEAAwTPg6CP+W7zFG3Px7K+hsRth/P+tNXrKXuZd0TPN3kfOMiwFOMLzM H8Iw== X-Gm-Message-State: ACgBeo0Z7inCoVCbSUGBSEa9KadDs6AEtPWLCKbQ2/1kAzRIwF7cRyeb fbGoBdIFpZIwwJebgpjWE+k= X-Google-Smtp-Source: AA6agR5rb2n+6V+AmZ+cH6HzJyie1/YcpvZyV/k0hUnUakRYOCrmH3qCgWES2Jo9lCkpNZ7McSx9pg== X-Received: by 2002:a05:6000:1a87:b0:222:2c85:2f5b with SMTP id f7-20020a0560001a8700b002222c852f5bmr2278726wry.654.1661607854062; Sat, 27 Aug 2022 06:44:14 -0700 (PDT) Original-Received: from Mini.fritz.box (p54b0c4c1.dip0.t-ipconnect.de. [84.176.196.193]) by smtp.gmail.com with ESMTPSA id g11-20020a05600c4ecb00b003a4c6e67f01sm3306182wmq.6.2022.08.27.06.44.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Aug 2022 06:44:13 -0700 (PDT) In-Reply-To: <871qt1aklk.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 27 Aug 2022 15:20:55 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:240920 Archived-At: Lars Ingebrigtsen writes: > Hm, yes... But it'd be really useful to have the complete backtrace > instead of just the signal form, because the errors that this would be > most helpful for are often way down in the call stack. The backtrace we have already. It's the "unreadable" stuff that ERT prints. It's hard to make sense of because of the macrology involved. If you macroexpand the ert-deftest form that Mike provided, you'll see what I mean. And that's also what one will see in a debugger. (There's an ert-debug-on-error, BTW. I think someone asked.) Don't know, maybe you could change ert-deftest to expand into something more readable?