Hello,

When debugging code run with Ikarus, I've been using something like
this:

(define (debug-display val)
  (display "---------- DEBUG ----------\n")
  (display val)
  (newline)
  val)

I.e. if I'm curious about what the value of some expression is when the
program is running, I just wrap the expression with
'(debug-display ...)'.

This is pretty basic and primitive but works OK. Is there something like
this already included with Ikarus or available somewhere?

trace-define and friends are also helpful.

And finally an Emacs question; when I'm adding/removing calls to
'debug-display' in my code, it would be great to just point at an sexp
and hit some key to add or remove the call. I can cook up a macro to do
this but was just wondering if there's already some way to do this that
I've missed in one of the scheme modes out there.

Also, hitting a key to toggle a definition between 'define' and
'trace-define' would be cool. :-)

Ed

Reply via email to