Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ipdb> def aaaa(q): q[2] ipdb> aaaa([1,2,3,4]) ipdb> aaaa([]) *** IndexError: list index out of range ipdb>
我想显示完整的回溯(很漂亮 - 带有堆栈帧、本地变量等),而不仅仅是“*** IndexError:列表索引超出范围”。我怎么做?