如何在python中使用pdb检查对象

时间:2013-11-01 15:00:51

标签: python debugging pdb

如何使用pythons pdb检查对象中包含的内容。 为了清楚我的文件顶部,我有

from nose.tools import set_trace

然后在我所在的某个地方

set_trace()

result = some_function(request.common[some_argument)

然后我使用

运行
nosetests mycode.py

如何检查变量和结果中包含的值。我当然不想深入研究some_function

感谢您的回答

0 个答案:

没有答案
相关问题