From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Insert edebug breakpoint into code Date: Sun, 22 Jul 2018 09:36:01 -0700 (PDT) Message-ID: <25a1a366-6a9b-4f4a-8770-068c25687c8e@default> References: <20180722092536.675138bb@gauss> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1532277274 5605 195.159.176.226 (22 Jul 2018 16:34:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 22 Jul 2018 16:34:34 +0000 (UTC) To: Joe Riel , Help GNU Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 22 18:34:30 2018 Return-path: Envelope-to: geh-help-gnu-emacs@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 1fhHJT-0001JC-MP for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Jul 2018 18:34:27 +0200 Original-Received: from localhost ([::1]:56706 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhHLa-0005c5-JP for geh-help-gnu-emacs@m.gmane.org; Sun, 22 Jul 2018 12:36:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fhHL8-0005bo-4P for help-gnu-emacs@gnu.org; Sun, 22 Jul 2018 12:36:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fhHL5-0007Ut-1G for help-gnu-emacs@gnu.org; Sun, 22 Jul 2018 12:36:10 -0400 Original-Received: from aserp2130.oracle.com ([141.146.126.79]:36306) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fhHL4-0007Tf-Q6 for help-gnu-emacs@gnu.org; Sun, 22 Jul 2018 12:36:06 -0400 Original-Received: from pps.filterd (aserp2130.oracle.com [127.0.0.1]) by aserp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6MGYYwk147886; Sun, 22 Jul 2018 16:36:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=9xyjIg1T1FJ41CtYjtZlpOQgDMmjqa9fX0hINv8wXi0=; b=09DNr39UNUu5qXqCMBFGLOPb2Y7X/Q1Q/HsOX5pxGsughP/JM0tjWG0k/g9jdr0evxa0 VAFtbwp42+Ac5yKJ101UfX6UDYEUB6LGHa7Bd7JBKx1YmiRZS0e+cNtNHIdY3Q+RCCh2 yq6tX1ThopyDCspnmoroAqX09naAt3Y5f7rgTbSXU0ek2ArNlRctleOG810rZlcR3yNg RbaCPKiT3BLxM8PjXsER6xkceJ+c5T3uZmCmJHG5n+rBIBfAWGPhOyuUIznCf+FeUMi3 uiHddMDmfyHDCQJUb0O93+IfUH0Pi2CIK73QuIafD55OjDARuViXVfUptIySJasSlESF 5Q== Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp2130.oracle.com with ESMTP id 2kbtbcj6n5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 22 Jul 2018 16:36:04 +0000 Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6MGa3Sx006478 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sun, 22 Jul 2018 16:36:03 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w6MGa2DC000565; Sun, 22 Jul 2018 16:36:03 GMT In-Reply-To: <20180722092536.675138bb@gauss> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4717.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8962 signatures=668706 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=452 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1806210000 definitions=main-1807220199 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 141.146.126.79 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:117556 Archived-At: > Is it possible to insert lisp code that > forces an edebug breakpoint at a particular place? >=20 > I don't want to have to interactively insert the breakpoint > from inside the debugger, but rather make it part of the > code when it is evaluated. Dunno about Edebug - I never use it. But for the regular Emacs debugger, just insert a call to function `debug' wherever you want to enter the debugger. `C-h f debug' tells you: ____ (debug &rest ARGS) Enter debugger. 'c' returns from the debugger. Arguments are mainly for use when this is called from the internals of the evaluator. You may call with no args, or you may pass nil as the first arg and any other args you like. In that case, the list of args after the first will be printed into the backtrace buffer. ____ But see the Elisp manual for more info. The most used key is `d', not `c'. Dunno why the doc string doesn't mention `d'.