From: linas@linas.org (Linas Vepstas)
Cc: guile-user@gnu.org
Subject: Re: Debugging embeded scheme
Date: Sat, 3 Apr 2004 10:05:35 -0600 [thread overview]
Message-ID: <20040403160535.GF4919@backlot.linas.org> (raw)
In-Reply-To: <16494.18142.53929.727200@hetman.ua>
Hi,
Thanks,
On Sat, Apr 03, 2004 at 12:08:46AM -0500, Viktor Pavlenko was heard to remark:
> I don't know how to get backtrace but printing throw_args may help.
>
> std::string
> obj2str( const SCM& object )
> {
> SCM fmt = scm_makfrom0str( "~S" );
> SCM s_str = scm_simple_format( SCM_BOOL_F, fmt, SCM_LIST1(object) );
> return SCM_STRING_CHARS( s_str );
> }
That actually helped; although the first thing it printed was
("car" "Wrong type argument in position ~A: ~S" (1 135725616) #f)
Given a clue, I took a step back, and used my handy-dandy list printer,
hoping to find a string where 135725616 was, but, no, it really does
seem to be an int. Actually a pointer, look about right in hex ...
--linas
--
pub 1024D/01045933 2001-02-01 Linas Vepstas (Labas!) <linas@linas.org>
PGP Key fingerprint = 8305 2521 6000 0B5E 8984 3F54 64A9 9A82 0104 5933
_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user
next prev parent reply other threads:[~2004-04-03 16:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-03 4:31 Debugging embeded scheme Linas Vepstas
2004-04-03 5:08 ` Viktor Pavlenko
2004-04-03 16:05 ` Linas Vepstas [this message]
2004-04-16 16:43 ` Thien-Thi Nguyen
2004-04-03 23:24 ` Arno Peters
2004-04-05 16:50 ` Mike Gran
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040403160535.GF4919@backlot.linas.org \
--to=linas@linas.org \
--cc=guile-user@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).