问题
This is a repeat of this question. It seems that I can't view instances of my classes in the variable explorer in Python, when I'm debugging.
There the answer claims that this is resolved, so I'm wondering what I'm doing wrong.
回答1:
(Spyder maintainer here) By default we show builtins (ints, floats, strings, list, dicts and tuples), Numpy arrays and Dataframes in our Variable Explorer.
If you want to see all objects present in your namespace, you need to go to the menu
Tools > Preferences > Variable Explorer
and turn off the option called
Exclude unsupported data types
来源:https://stackoverflow.com/questions/50634481/how-to-view-class-objects-in-spyders-variable-explorer