chansey97
2020-11-26 09:13:13

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


code
2020-11-26 11:07:20

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?


phanthero
2020-11-26 11:49:31

I think print is probably closest to the output on the REPL, but I will let someone who knows the source code confirm


samth
2020-11-26 12:34:52

It uses current-print, which is a parameter you can change


samth
2020-11-26 12:36:57

It might be nice to make the debug package more customizable. I bet Alex would take a patch to do that


cris2000.espinoza677
2020-11-26 13:15:12

ah… thank you, i already changed it to a canvas%


joshibharathiramana
2020-11-27 02:18:02

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


sorawee
2020-11-27 04:17:57

You can require define from racket


phanthero
2020-11-27 06:47:35

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


phanthero
2020-11-27 06:47:43

it looks very ugly, since it isn’t conforming to indentation