You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are you sure that the mat_name variable is on scope at the line where you set your breakpoint?
Could you share a minimal working example where this error appears?
I believe this may happen when you try to show a cv::Mat, which is a field variable - e.g. a member of an object. This is because in cv_imshow.py:58 you use frame.read_var, which checks only for variables with the specific name from the specific frame, but not for field variables (e.g. this->arg instead of arg), which might also be visible from the frame.
I think the workaround should involve using gdb.lookup_symbol to translate the string arg to a gdb.Symbol, instead of using frame.read_var directly to the string, but I'm unable to make it work. I may have some buggy version of gdb, since gdb.lookup_symbol(arg) returns (None, True), when arg is a name of a field variable, which should not happen according to gdb docs (https://sourceware.org/gdb/onlinedocs/gdb/Symbols-In-Python.html).
When I call
cv_imshow mat_name
, I got the following exception:The variable actually exists.
The text was updated successfully, but these errors were encountered: