`UnexpectedTracerError` when enabling `EQX_ON_ERROR=breakpoint`
While working on https://github.com/patrick-kidger/optimistix/pull/71 I got an XlaRuntimeError in which the error message suggested to turn EQX_ON_ERROR=breakpoint. However, when I do that, many tests, even ones that didn't fail before, start failing with UnexpectedTracerError.
Steps to reproduce
- Set envvar
EQX_ON_ERROR=breakpoint - Run
test_minimisetests.
I suspect you also need to set EQX_ON_ERROR_BREAKPOINT_FRAMES; see also the docs at https://docs.kidger.site/equinox/api/errors/#equinox.error_if. This is all to work around a known JAX bug, which is likely what you're bumping into.
This is something I've already improevd for the next release. EQX_ON_ERROR_BREAKPOINT_FRAMES will be set to 1 by default (so that this error doesn't trigger at all, even if you can't navigate the stack), and I've added a lot of extra printout when you open the debugger, better instructing you what to do.