From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#50629: 28.0.50; hard to debug an uncaught error with ert Date: Fri, 26 Aug 2022 13:41:23 +0200 Message-ID: <87pmgncjvg.fsf@gnus.org> References: <15445.1631834888@alto> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24191"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 50629@debbugs.gnu.org To: Mike Kupfer Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 26 13:47:56 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 1oRXoa-00064x-Db for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Aug 2022 13:47:56 +0200 Original-Received: from localhost ([::1]:59926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oRXoZ-0003y6-5j for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 26 Aug 2022 07:47:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57540) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oRXis-0007kv-Pj for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2022 07:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34500) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oRXis-00028z-Gx for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2022 07:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oRXir-000460-St for bug-gnu-emacs@gnu.org; Fri, 26 Aug 2022 07:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 26 Aug 2022 11:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50629 X-GNU-PR-Package: emacs Original-Received: via spool by 50629-submit@debbugs.gnu.org id=B50629.166151409715697 (code B ref 50629); Fri, 26 Aug 2022 11:42:01 +0000 Original-Received: (at 50629) by debbugs.gnu.org; 26 Aug 2022 11:41:37 +0000 Original-Received: from localhost ([127.0.0.1]:52479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRXiT-000455-0J for submit@debbugs.gnu.org; Fri, 26 Aug 2022 07:41:37 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:43206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oRXiQ-00044n-Su for 50629@debbugs.gnu.org; Fri, 26 Aug 2022 07:41:35 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Y8BVf9ZuQC23OMCaS7jau/j69ltsTjWhwEof9MpakYc=; b=cIWo0HnrK7WMH4WHgbOiysfuLf gdNxevyO0dlNg1qA7Dty+mgw7Q9L7FCFG0MDlJ3ZLxWTlsJ6+q0BqYJZrq4MMrAJ9wVtUdbm2pTwz n8f+vrR8NnQSHxfBsbBYhSNuQQLahYjO4Rl8YHQg685Y1GkQUcz/CGtHuSeWdDcXHEi4=; Original-Received: from [84.212.220.105] (helo=joga) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oRXiH-0000fD-JC; Fri, 26 Aug 2022 13:41:27 +0200 In-Reply-To: <15445.1631834888@alto> (Mike Kupfer's message of "Thu, 16 Sep 2021 16:28:08 -0700") X-Now-Playing: David Sylvian's _Dead Bees on a Cake_: "Dobro #1" 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:240815 Archived-At: Mike Kupfer writes: > Knowing that error "bar" was raised is helpful, but in a more realistic > test scenario, it can take some time to figure out where the error was > raised. Setting debug-on-error to t doesn't help (does ert hijack the > normal error handling mechanisms?). (I'm going through old bug reports that unfortunately weren't resolved at the time.) I'm not that familiar with ert internals, but yes, I think that's basically what ert does -- it hijacks the error/debug reporting system to implement the `should' macros. I've briefly poked at this now, but without any success in getting better backtraces for actual errors (which would indeed be very nice to have). Anybody more familiar with ert.el know how this can be achieved?