[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (ice-9 debug) is deprecated.
From: |
Bruce Korb |
Subject: |
Re: (ice-9 debug) is deprecated. |
Date: |
Sun, 08 Apr 2012 09:14:55 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120312 Thunderbird/11.0 |
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__);