unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* debug and backtrace
@ 2009-09-11 11:55 Mike Gran
  2009-09-13 14:30 ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Mike Gran @ 2009-09-11 11:55 UTC (permalink / raw)
  To: Guile Devel

Hi-

With the default behavior of 1.9.x, REPL debug and backtrace are broken.
Consider the following example run using 'guile --debug' and
(debug-enable 'backtrace).

With 1.8.5

--------------------------------------------------------
guile> (string-append "abc" (string-append "def" (string-append (error
"blammo"))))

Backtrace:
In standard input:
   2: 0* [string-append "abc" ...
   2: 1*  [string-append "def" ...
   2: 2*   [string-append ...
   2: 3*    [error "blammo"]

standard input:2:58: In procedure error in expression (error "blammo"):
standard input:2:58: blammo
ABORT: (misc-error)
guile> (debug)
This is the Guile debugger -- for help, type `help'.
There are 4 frames on the stack.

Frame 3 at standard input:2:58
	[error "blammo"]
debug> up
Frame 2 at standard input:2:43
	[string-append ...
debug> up
Frame 1 at standard input:2:22
	[string-append "def" ...
debug> up
Frame 0 at standard input:2:1
	[string-append "abc" ...
--------------------------------------------------------

With 1.9.x

--------------------------------------------------------
scheme@(guile-user)> (string-append "abc" (string-append
"def" (string-append (error "blammo"))))

Backtrace:
In unknown file:
   ?: 0* [#<vm a0389b8> #<program a272300 at standard input:1:0 ()>]
   ?: 1* [error "blammo"]

ERROR: In procedure error:
ERROR: blammo
scheme@(guile-user)> (debug)
This is the Guile debugger -- for help, type `help'.
There are 2 frames on the stack.

Frame 1 at unknown source location
	[error "blammo"]
debug> up
Frame 0 at unknown source location
	[#<vm a0389b8> #<program a272300 at standard input:1:0 ()>]
--------------------------------------------------------

Thanks,
Mike





^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-09-17 12:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-11 11:55 debug and backtrace Mike Gran
2009-09-13 14:30 ` Ludovic Courtès
2009-09-13 20:47   ` Neil Jerram
2009-09-16 19:31   ` Andy Wingo
2009-09-16 21:24     ` Neil Jerram
2009-09-17 12:24       ` Ludovic Courtès

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).