From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ilya Zakharevich Newsgroups: gmane.emacs.help Subject: Re: Debugging Perl with Emacs / perldb Date: Mon, 2 Aug 2010 21:42:25 +0000 (UTC) Organization: U.C. Berkeley Math. Department. Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1291860966 14845 80.91.229.12 (9 Dec 2010 02:16:06 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 02:16:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 03:16:02 2010 Return-path: Envelope-to: geh-help-gnu-emacs@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 1PQW35-0004yn-K5 for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 03:15:59 +0100 Original-Received: from localhost ([127.0.0.1]:46981 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQW34-0002kh-Rn for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 21:15:58 -0500 Original-Path: usenet.stanford.edu!newsfeed.esat.net!feeder.news.heanet.ie!feeder.erje.net!eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Injection-Date: Mon, 2 Aug 2010 21:42:25 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="LlLjF8LevGdIZWbTvv+SXA"; logging-data="7286"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FdIDOkuIrq9gP0LYNmnKM" User-Agent: slrn/0.9.8.1pl1 (Linux) Cancel-Lock: sha1:2maLUImYGm56VPdILAepUwcQu6Y= Original-Xref: usenet.stanford.edu gnu.emacs.help:180282 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76458 Archived-At: On 2010-08-01, William L Brown wrote: > Nothing but an indicator of what line I am running with no view of the > line: > (eval 6)[/home/bbrown/newTmp/emacsDebugTests/foo.pl:8]:7:0 >From this info, an external program cannot deduce what happens. We know that we are on 7th line of $foo, and that eval $foo was called on the 8th line of /home/bbrown/newTmp/emacsDebugTests/foo.pl. But how would Emacs know what is the contents of $foo? Perl's debugger is not READING scripts to find "the code on line 6 of bar.pl"; Perl (in debugging mode) just keeps the array of lines SEEN by the compiler (an array per each file). For Perl, this $foo becomes just another "input file", so it has the associated array, and Perl's debugger can inspect what is on 7th line of this $foo. Emacs' debugging, on the other hand, is based on reading "raw files" from the filesystem. I see no easy way to communicate the needed info by IPC... [*] Hope this helps, Ilya P.S. [*] Of course, one can extract the relevant arrays from Perl (using, e.g., the `l' operator). But this would require some extra parsing...