errortrace with ,en should work as normal, as long as you ensure that
there are no pre-compiled bytecode files (compiled/*.zo):
$ ls
myfile.rkt
$ racket -l errortrace -i
Welcome to Racket v7.2.
> ,en "myfile.rkt"
"myfile.rkt"> (f 123)
; g: 123 [,bt for context]
"myfile.rkt"> ,bt
; g: 123
; errortrace...:
; /tmp/ram2/debug/myfile.rkt:6:2: (error (quote g) "~a" n)
; /tmp/ram2/debug/myfile.rkt:3:2: (+ (g x) (g (+ 2 x)))
......
If myfile.rkt is precompiled then errortrace wouldn't have the chance
to instrument it with backtrace information:
$ raco make myfile.rkt && ls *
myfile.rkt
compiled:
myfile_rkt.dep myfile_rkt.zo
$ racket -l errortrace -i
Welcome to Racket v7.2.
> ,en "myfile.rkt"
"myfile.rkt"> (f 456)
; g: 456 [,bt for context]
"myfile.rkt"> ,bt
; g: 456
; errortrace...:
; readline-input:2:0: (f 456)
......
> --
> You received this message because you are subscribed to the Google Groups "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
racket-users...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-users/650ddb71-44ca-4758-bd08-a2b606a2f5b0%40googlegroups.com.