* backtraces
@ 2016-09-14 14:05 Catonano
0 siblings, 0 replies; only message in thread
From: Catonano @ 2016-09-14 14:05 UTC (permalink / raw)
To: guile-user
Hello guilers
I am playing a little bit with guile 2.0.11
It happens that one of my functions gets called with an argument of the
wrong type. It should be a hash-table and it's a symbol instead.
So it happens that my function calls hash-fold with something that should
be a hash-table but it's a symbol
Like this:
(hash-fold
first-argument ;; an anonymous function
second-argument ;; this is a long list
'this-should-be-a-hash-table-and-its-not!! )
Thing is that the way the stacktrace gets printed in the debugger is like
this
0 (hash-fold #<procedure 2089e40 at npmjs.scm:72:5 (name version store)>
(#<<npm-package-version> name: "promises-aplus-tests" version: "latest">
#<<npm-pa…>) #)
That is the last argument, the faulty one, is not printed, it's cut out
How can I get my calls completely printed out ?
Because I send different alarm symbols based on the specific error
condition that I get, having those printed out would be neat.
Instead of having to reconstruct in the REPL the whole call chain to see
which error actually arose.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-09-14 14:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-14 14:05 backtraces Catonano
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).