摘要: 在要开始debug的地方导入pdb: 然后触发该代码,如执行cli命令等,然后用screen打开后台就会看到如下: debug完后输入quit继续运行。 debug好之后不要忘了Remove the debugging fragment from the source file. Start the 阅读全文
posted @ 2017-01-12 21:49 圆旭 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 在一个继承resource2的实体里,打印self.__dict__结果是: 阅读全文
posted @ 2017-01-12 21:35 圆旭 阅读(182) 评论(0) 推荐(0) 编辑
摘要: ref: http://docs.openstack.org/developer/python-novaclient/api.html 阅读全文
posted @ 2017-01-12 18:15 圆旭 阅读(208) 评论(0) 推荐(0) 编辑