Re: [racket-users] printing errors

2020-08-29 Thread Sorawee Porncharoenwase
Alternatively, I think you can simply supply a non-exception value to the handler. This will suppress the red cross icon too, though. (define (print-exn exn) ((error-display-handler) (if (exn? exn) (exn-message exn) (format "~a" exn)) #f)) On Sat, Aug 29, 2020 at 8:17 AM Ro

Re: [racket-users] printing errors

2020-08-29 Thread Robby Findler
It might make the most sense for you to extract the exn-message and print it yourself? It should contain only the "a: undefined" part. If you want to selectively access the stacktrace and decide whether or not to print that first stackframe, that'll probably require a change to DrRacket, tho -- at

Re: [racket-users] printing errors

2020-08-29 Thread Shriram Krishnamurthi
Thank you! Is there a way of further suppressing info? Right now I get output like [image: image.png] ../../make-semantics.rkt:37:13: a: undefined which is a reference to the language implementation file rather than to the program in the language. The programs here are so small that suppressin

Re: [racket-users] graphical debugging

2020-08-29 Thread Sorawee Porncharoenwase
I meant the REPL in DrRacket (interaction window). On Sat, Aug 29, 2020 at 5:21 AM Catonano wrote: > Il giorno sab 29 ago 2020 alle ore 12:11 Sorawee Porncharoenwase < > sorawee.pw...@gmail.com> ha scritto: > >> It (kinda) works for me. You should make sure that debugging is enabled >> in the la

Re: [racket-users] graphical debugging

2020-08-29 Thread Catonano
Il giorno sab 29 ago 2020 alle ore 12:11 Sorawee Porncharoenwase < sorawee.pw...@gmail.com> ha scritto: > It (kinda) works for me. You should make sure that debugging is enabled in > the language setting (it should display something like “Language: racket, > with debugging [custom]” in the REPL).

Re: [racket-users] graphical debugging

2020-08-29 Thread Sorawee Porncharoenwase
It (kinda) works for me. You should make sure that debugging is enabled in the language setting (it should display something like “Language: racket, with debugging [custom]” in the REPL). Then, click “Debug” and then click “Step” for a couple of times (seven to be precise). The little green triangu

[racket-users] graphical debugging

2020-08-29 Thread Catonano
in Drracket, I'm trying to debug this scrap of code #lang racket (require