On 04/07/12 14:16, Ludovic Courtès wrote:
Hi Bruce,

(system vm trace) appeared in Guile 2.0.

Hi Ludovic,

Then I have a question:  Is this the currently accepted way of setting
up an environment where I can trace errors back to their source?

char fmt[] = "(use-modules (%s))\n"
            "(read-enable 'positions)\n"
            "(add-hook! before-error-hook error-source-line)\n"
            "(use-modules (ice-9 stack-catch))";
char post_2[] = "system vm trace";
char pre_2[] = "ice-9 debug";

asprintf(&p, fmt, (guile_ver >= 2) ? post_2 : pre_2);
ag_scm_eval_string_from_file_line(p, __FILE__, __LINE__);

Reply via email to