LLDB breakpoint on enum usage (or regexp or symbol)

Is it possible to break when specific enum is used anywhere or on some text in code maybe? Trying to catch where error is coming from when it's used in hundreds of places...

I've tried b se -r 'ENUM_NAME' which did not work...
And enum comes from dependency, which I can step into.

I don't how to do that , maybe just lldb just don't support that

But if you just want to know where the error comes , I suggest you to enable the RUST_BACKTRACE ,
then it print a huge stack trace when panic and you can know what caused the panic

Also , I recommend to use eyre , which can include the location where error caused

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.