当我尝试调试时,IDE NSight (eclipse) 的“漂亮打印机”选项有问题。我已经用谷歌搜索了,但我还没有找到解决我的问题的方法。
当我开始调试时,出现下一条消息:
Traceback (most recent call last):
File "/usr/share/gdb/auto-load/usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.21-gdb.py", line 64, in <module>
register_libstdcxx_printers(gdb.current_objfile())
File "/usr/lib/x86_64-linux-gnu/../../share/gcc-5/python/libstdcxx/v6/__init__.py", line 33, in register_libstdcxx_printers
register_libstdcxx_xmethods(obj)
File "/usr/lib/x86_64-linux-gnu/../../share/gcc-5/python/libstdcxx/v6/xmethods.py", line 600, in register_libstdcxx_xmethods
gdb.xmethod.register_xmethod_matcher(locus, ArrayMethodsMatcher())
File "/usr/share/gdb/python/gdb/xmethod.py", line 266, in register_xmethod_matcher
index = _lookup_xmethod_matcher(locus, matcher.name)
File "/usr/share/gdb/python/gdb/xmethod.py", line 236, in _lookup_xmethod_matcher
for i in range(0, len(locus.xmethods)):
AttributeError: 'gdb.Objfile' object has no attribute 'xmethods'
我不确定问题出在哪里,但变量值没有出现,唯一的解决方案是禁用漂亮的打印选项。
我使用的是 Ubuntu 16.04,并且 cuda 工具包是从存储库安装的。
如果有人可以提供帮助,我将不胜感激。