From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Bruce Korb Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: PLEASE: debugging embedded guile code Date: Mon, 28 Apr 2003 09:07:23 -0700 Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Message-ID: <3EAD51BB.502FC8C@veritas.com> References: <20030225093608.6a8935f8.dsmith@altustech.com> <3EAAB691.6AD935B5@veritas.com> <3EAAE877.7140ECB6@veritas.com> <3EAC5266.23DEEB7F@veritas.com> Reply-To: bkorb@veritas.com NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1051546148 15878 80.91.224.249 (28 Apr 2003 16:09:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 28 Apr 2003 16:09:08 +0000 (UTC) Cc: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Apr 28 18:09:05 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19ABBe-00047f-00 for ; Mon, 28 Apr 2003 18:09:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ABCK-00019t-03 for guile-devel@m.gmane.org; Mon, 28 Apr 2003 12:09:44 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 19ABC0-000192-00 for guile-devel@gnu.org; Mon, 28 Apr 2003 12:09:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 19ABAE-0000TG-00 for guile-devel@gnu.org; Mon, 28 Apr 2003 12:07:35 -0400 Original-Received: from bay-bridge.veritas.com ([143.127.3.10] helo=mtvmime02.veritas.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 19ABA8-0000Pn-00; Mon, 28 Apr 2003 12:07:28 -0400 Original-Received: from megami (unverified) by mtvmime02.veritas.com (Content Technologies SMTPRS 4.3.6) with SMTP id ; Mon, 28 Apr 2003 09:09:08 -0700 Original-Received: from veritas.com (ellen.veritas.com[10.180.88.137]) (2109 bytes) by megami via sendmail with P:esmtp/R:smart_host/T:smtp (sender: ) id for ; Mon, 28 Apr 2003 09:07:26 -0700 (PDT) (Smail-3.2.0.101 1997-Dec-17 #15 built 2001-Aug-30) X-Mailer: Mozilla 4.8 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en Original-To: prj@po.cwru.edu Original-cc: Neil Jerram Original-cc: guile-user@gnu.org Original-cc: Bruce Korb X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Developers list for Guile, the GNU extensibility library List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.devel:2227 gmane.lisp.guile.user:1847 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:2227 prj@po.cwru.edu wrote: > > Bruce Korb wrote: > > Explicit, unambiguous directions on exactly how to get the Guile library > > to print out the same error messages it does when running as part > > of the "guile" independent program. > > You'll need this: (read-enable 'positions) > And maybe this: (debug-enable 'show-file-name) > Then you can do this: (source-property obj 'line) > (You can also use 'column and 'filename.) That's helpful. 'course the file name is known by my code and not Guile. And it will vary from one gh_eval_str call to another. And the line number must be incremented by the line number I have. Do I invoke these at the start of my run? What does the catch code look like? Or, should I still be relying on the native catch/fail-exit code? If that, then I have to correct its impression about the file and line numbers. Thank you! - Bruce _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel