From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Davin Pearson Newsgroups: gmane.emacs.help Subject: Running until first unhandled error. Date: Wed, 4 Jan 2023 17:25:57 +1300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21107"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jan 04 05:27:00 2023 Return-path: Envelope-to: geh-help-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 1pCvMh-0005EA-N4 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 04 Jan 2023 05:26:59 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCvM2-0006hg-NJ; Tue, 03 Jan 2023 23:26:18 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pCvM1-0006hK-E0 for help-gnu-emacs@gnu.org; Tue, 03 Jan 2023 23:26:17 -0500 Original-Received: from mail-pj1-x102b.google.com ([2607:f8b0:4864:20::102b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCvLz-00070i-Qs for help-gnu-emacs@gnu.org; Tue, 03 Jan 2023 23:26:17 -0500 Original-Received: by mail-pj1-x102b.google.com with SMTP id c8-20020a17090a4d0800b00225c3614161so30689935pjg.5 for ; Tue, 03 Jan 2023 20:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=1qvJYDBqw2svDVqD9Uha/zfNYCJ+iWxK4sMg4btdZfk=; b=Vg31yuUAxrxUDpuwil0y/0x23TbLEBdhL7FTbXfAd9cplBlicriDYSlY0VrNVO/Ar9 sjA3JgE68j0sBmnOvqsWvilJSXZuq/quoHXQndTmNpXNHiIegPo3VmSb1aiyehcmbqAC WXVeLqS601jvqHrrMONDj8oHwTlZP2a//rFoypDbyy5t0bMWqtbAHdeF4LFx8CND001s VZNuDQGF/bUe7L2Wj38wEFDaHKsB7K/1sW1Jrx7gm1zRN87BQeuoYYIt3lIkzF2H7ji9 czR7PFiVOY/yFz5QMPUeBLrYh1BEYe/TMEDCWR+q7UmIcPNLTmAXPXGC9MiVuGGHN1A7 2tMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=1qvJYDBqw2svDVqD9Uha/zfNYCJ+iWxK4sMg4btdZfk=; b=0FZcfmWQAfYrJcJ/N6a/fL26ERXQwZiaWIpdfaQ5JZLDTMB34UgHx/26XgjUFNYXC9 BEpWGJU2eZrz/v0SROiw6HJA0zZ34rgo5r5XXbhbGbeHkoJLtKBnLBDk/T+DYY6gvXzZ WKfWkxSZEjVeZ8bZ9gk8BawHhFsdWTkV0R+JWHiYfM1aLQk1W1FukYAkTJhEX6qnr4BG LRYVXmlcZoWNfgnyjFrm72UwS8V3RwkK8KSwzWvJvKsRuIVDyGkexRdDBPB0BAm3TdG7 z9TxyOQs0he7zjJKHiNZm7t92ec5UvCNty46bP60mKxBei1iErq9SYwdG6UT0EaLXVhU pi+A== X-Gm-Message-State: AFqh2kpXmT9xumSbXoQPJQL3XHMfs5Au+ypX640E4Erw2v9C7dc9VMlJ 4SR31BoewTcBlMYqCgMk4VTPNFjOEeIxY1tgw5XUVlnOWfw= X-Google-Smtp-Source: AMrXdXvyoA5UuvBHsoXJj3uoCL8nXQoa6GTzkU+hW20gdjsLxHFvoKJ5LppSAvNSyLE3ytpIPAjQq2peg5nbvURlXvU= X-Received: by 2002:a17:903:200a:b0:192:ce13:518a with SMTP id s10-20020a170903200a00b00192ce13518amr765517pla.117.1672806373723; Tue, 03 Jan 2023 20:26:13 -0800 (PST) Received-SPF: pass client-ip=2607:f8b0:4864:20::102b; envelope-from=davin.pearson@gmail.com; helo=mail-pj1-x102b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142116 Archived-At: I am trying to get edebug online instead of checkpointing every second line of code and in every buffer like so to narrow down the source of the bug, i.e. an unhandled error message. (message "&foo:100:") (defun foo () (message "&foo:101:") (setq abc 123) (message "&foo:102:") (foo) (message "&foo:103:") (bar) (message "&foo:104:") (setq def 456) (message "&foo:105:") ) (message "&foo:106:") I eval a buffer using (progn (mark-whole-buffer) (eval-buffer)) and it enters me into the *Debugger* as it should. What I want to do is to run until the next unhandled error message, but none of the *Debugger* keys seem to do this. The Elisp documentation is not very clear on this point. Here are my edebug settings for you to help me debug my code: (progn (require 'debug) (require 'edebug) (setq edebug-all-defs t) (setq edebug-all-forms t) (setq edebug-on-error t) (edebug-eval-top-level-form) ) *Davin.*