@sorawee Thank you for telling me this information. BTW, this package may be more suitable for a specific call-site, e.g. (bar (foo #R(test e)))
. But if we insert #R
in front of (match ...)
, the log messages will include the whole (match ...)
expression.
which procedure gets called by the REPL when I type an object followed by enter: print, write or display? And how do I change the behaviour to be display?
I think print
is probably closest to the output on the REPL, but I will let someone who knows the source code confirm
It uses current-print, which is a parameter you can change
It might be nice to make the debug package more customizable. I bet Alex would take a patch to do that
ah… thank you, i already changed it to a canvas%
If I redefined, say define
as (define define 3)
in the current REPL, is there anyway I can make define
work as usual again (without having to restart the REPL of course)?
You can require define from racket
For printing multi-line strings, are here strings the best idea: (define (print-prologue)
(displayln "stuff")
(displayln
#<<HERESTRING
Long string
but
it needs
to be
printed
exactly
like this, so I have
no real choice
HERESTRING
))
it looks very ugly, since it isn’t conforming to indentation