On 05/03/18 17:42, Greg Hendershott wrote:
>> OK, doing racket -l errortrace -t <prog> as suggested in
>> http://docs.racket-lang.org/errortrace/quick-instructions.html helps.
> 
> The equivalent in racket-mode is to set `racket-error-context` to `'high`:
> 
>   
> https://github.com/greghendershott/racket-mode/blob/master/Reference.md#racket-error-context
> 

Thanks. I was not aware of racket-error-context.

> Quote:
> 
> 
> racket-error-context
> 
> The level of context used for racket-run error stack traces.
> 
> Each level improves stack trace information, but causes your program
> to run more slowly.
> 
> - 'low corresponds to compile-context-preservation-enabled #f.
> 
> - 'medium corresponds to compile-context-preservation-enabled #t,
> which disables some optimizations like inlining.
> 
> - 'high corresponds to compile-context-preservation-enabled #t and to
> use of errortrace, which heavily instruments your code and therefore
> may be significantly slower.
> 
> Tip: Regardless of this setting, you can enable 'high errortrace for a
> specific racket-run using a C-u prefix. This lets you normally run
> with a faster setting, and temporarily re-run to get a more-helpful
> error message.
> 

That's great. Thanks once again.

-- 
Paulo Matos

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to