r/pycharm•
NutsHell_666

member variable of class disappears from debug->variable console

Hello. Consider the following code: Class MyClass: def init(self): self.my_ref_to_func = get_function_ref()

def get_function_ref() from importlib import import_module m = import_module('some_module') s = m.the_function return s

If I am debugging then the variables m and s are Special Variables under Debug->Variables. After the return value is assigned to self.my_ref_to_func then this variable disappears om the Debug->Variables console. It is still there because it can be printed but I don't see it.

questions: What can I do to make it show while debugging? Is it possible to disable Special Variables and make them show as regular variables?

Thank you!

Posted May 1, 2026, 9:21 PM UTC

12
Loading comments…