From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Clinton Ebadi Newsgroups: gmane.lisp.guile.user Subject: Re: Enabling Debugging Date: Sat, 29 Jul 2006 15:08:32 -0400 Message-ID: <873bck9qkv.fsf@unknownlamer.org> References: <20060729113034.GA1340@alamut.tdm.local> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1154200125 13010 80.91.229.2 (29 Jul 2006 19:08:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 29 Jul 2006 19:08:45 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jul 29 21:08:41 2006 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6uAx-0008HH-Ve for guile-user@m.gmane.org; Sat, 29 Jul 2006 21:08:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6uAw-0004HO-Vq for guile-user@m.gmane.org; Sat, 29 Jul 2006 15:08:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6uAs-0004G5-UT for guile-user@gnu.org; Sat, 29 Jul 2006 15:08:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6uAr-0004E9-Ou for guile-user@gnu.org; Sat, 29 Jul 2006 15:08:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6uAr-0004Dv-KM for guile-user@gnu.org; Sat, 29 Jul 2006 15:08:33 -0400 Original-Received: from [204.127.200.81] (helo=sccrmhc11.comcast.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G6uD8-0004M9-Kb for guile-user@gnu.org; Sat, 29 Jul 2006 15:10:54 -0400 Original-Received: from kz.homeip.net ([68.49.172.183]) by comcast.net (sccrmhc11) with ESMTP id <20060729190832011008ghl4e>; Sat, 29 Jul 2006 19:08:32 +0000 Original-Received: by kz.homeip.net (Postfix, from userid 1000) id 536CA4383; Sat, 29 Jul 2006 15:08:32 -0400 (EDT) Original-To: guile-user@gnu.org In-Reply-To: <20060729113034.GA1340@alamut.tdm.local> (Volkan YAZICI's message of "Sat, 29 Jul 2006 14:30:34 +0300") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:5428 Archived-At: Volkan YAZICI writes: > Hi, > > I'm trying to enable debbuging - that's (debug-enable 'backtrace) in > Scheme - from a C program on-the-fly. Therefore, as far as I > understand from the quite poorly documented guile manual, I should > use scm_debug_options() for this purpose. But I couldn't find any clue > about using this function in the neither manual, nor source code. You should be able to put something like: SCM_DEVAL_P = 1; SCM_RECORD_POSITIONS_P = 1; SCM_BACKTRACE_P = 1; SCM_RESET_DEBUG_MODE; Into your real_main (the one passed to scm_boot_guile). This will give you debug output similar to the default debugging repl. -- http://unknownlamer.org Jabber:clinton@hcoop.net AIM:unknownlamer IRC:unknown_lamer@fnode#hcoop I'm just thinking aloud; isn't thinking allowed? 443E 4F1A E213 7C54 A306 E328 7601 A1F0 F403 574B _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://lists.gnu.org/mailman/listinfo/guile-user