Python 2.7
I'm using the below helper class, to access dictionary keys via property name. That is working fine. However it not showing nicely in the visual-studio-code debugger view. It is showing the repl() right next to the variable name, but I cannot "open" it to see all the key/values in the dict(), like I can do with normal dict(). Any idea how to achieve that? How is visual-studio-code determining what to show in the details when "opening" the variable?
class AttributeDict(dict):
__getattr__ = dict.__getitem__
__setattr__ = dict.__setitem__
def __init__(self, *args, **kvargs):
super(AttributeDict, self).__init__(*args, **kvargs)
Many thanks for your help
Juergen