From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Watchpoints for emacs lisp. Date: Tue, 10 Aug 2010 13:00:24 +0200 Message-ID: References: <28512483.post@talk.nabble.com> <28585093.post@talk.nabble.com> <28585789.post@talk.nabble.com> <28586371.post@talk.nabble.com> <28587094.post@talk.nabble.com> <28657657.post@talk.nabble.com> <28657973.post@talk.nabble.com> <28678945.post@talk.nabble.com> <28683346.post@talk.nabble.com> <28693899.post@talk.nabble.com> <28711395.post@talk.nabble.com> <29084789.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1281438038 25241 80.91.229.12 (10 Aug 2010 11:00:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 10 Aug 2010 11:00:38 +0000 (UTC) Cc: Emacs-devel@gnu.org To: "alin.s" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 10 13:00:37 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OimZP-0006sc-G4 for ged-emacs-devel@m.gmane.org; Tue, 10 Aug 2010 13:00:35 +0200 Original-Received: from localhost ([127.0.0.1]:44374 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OimZP-0000R6-5w for ged-emacs-devel@m.gmane.org; Tue, 10 Aug 2010 07:00:35 -0400 Original-Received: from [140.186.70.92] (port=33233 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OimZI-0000R0-Pw for emacs-devel@gnu.org; Tue, 10 Aug 2010 07:00:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OimZH-0006RT-MD for emacs-devel@gnu.org; Tue, 10 Aug 2010 07:00:28 -0400 Original-Received: from impaqm2.telefonica.net ([213.4.138.2]:22523) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OimZH-0006RC-E8 for emacs-devel@gnu.org; Tue, 10 Aug 2010 07:00:27 -0400 Original-Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm2.telefonica.net with bizsmtp id saWp1e0010r0BT63Mb0Rno; Tue, 10 Aug 2010 13:00:25 +0200 Original-Received: from ceviche.home ([83.40.4.203]) by IMPmailhost2.adm.correo with BIZ IMP id sb0Q1e00G4NokFF1ib0Rna; Tue, 10 Aug 2010 13:00:25 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="monnier$movistar.es" |auth_email="monnier@movistar.es" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" Original-Received: by ceviche.home (Postfix, from userid 20848) id 9123766138; Tue, 10 Aug 2010 13:00:24 +0200 (CEST) In-Reply-To: <29084789.post@talk.nabble.com> (alin s.'s message of "Tue, 6 Jul 2010 05:26:48 -0700 (PDT)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128540 Archived-At: > I have a little misunderstanding. > How can I call the debugger from the C code ? > How can I find out whether I should call the edebug or simply the old > debugger (debug) ? C code cannot call Edebug since Edebug only applies to Lisp code. As for calling `debug' there are various ways to do that, one of them is to call the function stored in the variable `debugger', i.e. val = apply1 (Vdebugger, arg); but it's usually not needed/desired (most of the time, the better option is to signal an error, which can then in turn trigger the debugger depending on debug-on-error and such). Stefan