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: How do I get edebug online? Date: Tue, 18 Jan 2022 11:28:18 +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="16276"; 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 Mon Jan 17 23:33:41 2022 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 1n9aZJ-00044z-7z for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 Jan 2022 23:33:41 +0100 Original-Received: from localhost ([::1]:48832 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9aZH-0002yq-Nb for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 17 Jan 2022 17:33:39 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51882) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9aUL-00075C-Pg for help-gnu-emacs@gnu.org; Mon, 17 Jan 2022 17:28:33 -0500 Original-Received: from [2a00:1450:4864:20::135] (port=38463 helo=mail-lf1-x135.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9aUK-00066L-8a for help-gnu-emacs@gnu.org; Mon, 17 Jan 2022 17:28:33 -0500 Original-Received: by mail-lf1-x135.google.com with SMTP id bu18so40080893lfb.5 for ; Mon, 17 Jan 2022 14:28:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=eSamjsIgHGGSCpHit2lMP1aeMfytvoUQ+RNrz2+9qJU=; b=Ojqd3Fa0U0XBUbBaFpPCC2pmJ9ghP7J8MDqT2l/YDHsMs68QD7dccDk6ZWzehJl27H O9LauwqoCGT3fY8RxpetOtRd1MpFpLDE9OlUl9rXjhwoCzRgDAgqLyiqGhPYVOsQy6w6 5nyI2ProfMYFSgHjXu1WzcX0GUb2ROhzxIyhQ40xvlDidYfvFWaT/kwWIYIcr7RA2rv0 6APTfwDwxtp6m7ntmwU1e3rwOi0V3CQLU7Napo+I/aW407L45eH94I9Cb1h9GoCtC9/E 17NQAmPEdxIRRJ5J7HdgkOpoPlrmW2w1uvCHK1TR7UbKprjqInzf37uRWoTbcYt4WT9K nHWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eSamjsIgHGGSCpHit2lMP1aeMfytvoUQ+RNrz2+9qJU=; b=5f8Hz5zdVovhat5WxfE5T7chBfynVaCGEj1lltodDdhIlJ5dAxorDoqZ6+WBpd6w/j IaCXTHksJnN9KBkLA6KEVz8JZWnl46gZaRR/DFjRiF2S4kWwryu3Wv2SNZd3H8KuFX2M DFl/stXOOCx2pPtZWKWlaVW4t+1lqR1qlMm+R/T3/Nltgoyuhn/a/Nx7NIRkuZ1Wg7WM zlbLnpShK663Z41jE/7bEZD34YbrVmhbP4OyoQMWeEoRhH2v66gbBRzjYNXPwKS7YSYk 12DGwZaaJ9dtHEz7SPNBLIy+lNh2VvuKhnEwB3facYnBlGmi2JcDQvyNMANSnrHhJ8uu xL0g== X-Gm-Message-State: AOAM533A0410ODQRjTUSZELIZL4rISO+qZd8SJb+wQAjTBlIC732BMqf 8jtYYL7KktXoPiSrLKX8IB9uyVYI1uxN16+MZ4+f7CMd6Cw= X-Google-Smtp-Source: ABdhPJwd1axOb0E0fYos5tDQLxl/IfvK97J+/eZAGWAPQ6HYRHE7z7wlBcBRrpX89GKHp/VuD3auesNNJkC8Eu+dlEM= X-Received: by 2002:a05:6512:33d5:: with SMTP id d21mr18903764lfg.8.1642458509746; Mon, 17 Jan 2022 14:28:29 -0800 (PST) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a00:1450:4864:20::135 (failed) Received-SPF: pass client-ip=2a00:1450:4864:20::135; envelope-from=davin.pearson@gmail.com; helo=mail-lf1-x135.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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" Xref: news.gmane.io gmane.emacs.help:135395 Archived-At: First I eval the following sexp: (setq edebug-all-defs t) Then I issue the following command on the following code which resides in a file called: ~/java-training-wheels/dlisp/coolmacs/dmp-grep--splat-file.el. The command is \C-\M-x. The file contains the following defun: (defun fac (n) (when (= 5 n) (message "Foo bar") (edebug) (message "Rita Hayworth")) (if (< 0 n) (* n (fac (1- n))) 1)) Execute the following command: (fac 10) and it comes back at you with the following backtrace: (see after this backtrace for my question) Debugger entered: nil apply(debug nil nil) edebug() (progn (message "Foo bar") (edebug) (message "Rita Hayworth")) (if (= 5 n) (progn (message "Foo bar") (edebug) (message "Rita Hayworth"))) fac(5) (* n (fac (1- n))) (if (< 0 n) (* n (fac (1- n))) 1) fac(6) (* n (fac (1- n))) (if (< 0 n) (* n (fac (1- n))) 1) fac(7) (* n (fac (1- n))) (if (< 0 n) (* n (fac (1- n))) 1) fac(8) (* n (fac (1- n))) (if (< 0 n) (* n (fac (1- n))) 1) fac(9) (* n (fac (1- n))) (if (< 0 n) (* n (fac (1- n))) 1) fac(10) eval((fac 10) nil) elisp--eval-last-sexp(nil) eval-last-sexp(nil) funcall-interactively(eval-last-sexp nil) call-interactively(eval-last-sexp nil nil) command-execute(eval-last-sexp) My question is this: How do I go about typing g (goto next breakpoint) Do I need to pop the stack and go back to the top level? Do I enter the command g in the *Backtrace* window? or in the file window ~/java-training-wheels/dlisp/coolmacs/dmp-grep--splat-file.el How do I go about printing out "Rita Hayworth" ? I have searched my *Messages* buffer but I have not found Rita Hayworth anywhere. Judging from the Elisp manual it seems that I need to type in the "g" command but I am perplexed at where I need to issue this command!