使用PyCharm进行调试(发生在多个版本上)我无法正确查看某些列表和字典(其他代码正确显示)。 在视图窗口对象的名称被呈现与消息: {list} Unable to get repr for <type 'list>
或 {dict} Unable to get repr for <type 'dict'>
PyCharm调试器不会显示对象的内容:“无法获取代码<type 'list>”
更新: 以我尝试之一,我接到从调试器下面的消息(呈现,而不是一个的值的列表变量):
Unable to display children:Error resolving variables Traceback (most recent call last): File "/Applications/PyCharm CE.app/Contents/helpers/pydev/_pydevd_bundle/pydevd_comm.py", line 1004, in do_it _typeName, valDict = pydevd_vars.resolve_compound_variable(self.thread_id, self.frame_id, self.scope, self.attributes) TypeError: 'NoneType' object is not iterable
我会感谢任何想法,可能会导致此行为?
谢谢!
请添加一个最简单的工作示例 –
该问题不能用小样本或任何脚本重现。我试图了解可能导致这种错误的原因。 谢谢! –