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.
如何使用 pythons pdb 检查对象中包含的内容。为了在我的文件顶部清楚地说明我有
from nose.tools import set_trace
然后在我有的某个地方
set_trace() result = some_function(request.common[some_argument)
然后我运行使用
nosetests mycode.py
如何检查结果中包含的变量和值。我当然不想深究some_function。
some_function
感谢您的回答