guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Enabling Debugging


From: Clinton Ebadi
Subject: Re: Enabling Debugging
Date: Sat, 29 Jul 2006 15:08:32 -0400
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

Volkan YAZICI <address@hidden> 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:address@hidden AIM:unknownlamer IRC:address@hidden
I'm just thinking aloud; isn't thinking allowed?
443E 4F1A E213 7C54 A306  E328 7601 A1F0 F403 574B




reply via email to

[Prev in Thread] Current Thread [Next in Thread]