ipdb 在 openstack 中使用
1, 安装ipdb easy_install ipdb or pip install ipdb2,使用ipdb net_manager = utils.import_object(FLAGS.network_manager) import ipdb;ipdb.set_trace() # 打断点,调试
root@roto-virtual-machine:~/nova/api/openstack/compute/contrib# nova-manage network create private --fixed_range_v4=10.14.23.0/24 --num_networks=1 --network_size=32> /usr/bin/nova-manage(795)create() 794 import ipdb;ipdb.set_trace()--> 795 net_manager.create_networks(context.get_admin_context(), 796 label=label,
ipdb> help
Documented commands (type help <topic>):========================================EOF bt cont enablejumppdef r tbreak w a c continueexit l pdoc restartu whatisaliascl d h listpinforeturn unaliaswhereargs clear debug help n pp run unt b commands disable ignorenextq s untilbreakconditiondown j p quit step up
Miscellaneous help topics:==========================execpdb
Undocumented commands:======================retvalrv
ipdb>
3, nova-network 使用ipdb ipdb /usr/bin/python /usr/bin/nova-network --flagfile=/etc/nova/nova.conf
打破老婆终身制,实行小姨股份制。引入小姐竞争制,推广情人合同制。 关羽五绺长髯,风度翩翩,手提青龙偃月刀,江湖人送绰号——刀郎。 路过,支持一下啦 我妈常说,我们家要是没有电话就不会这么穷。 真是 收益 匪浅 花前月下,不如花钱“日”下!*^_^*
页:
[1]