cfe 发表于 2013-9-5 09:26:00

ipdb 在 openstack 中使用

1, 安装ipdb   easy_install ipdb or pip install ipdb
2,使用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

火冰狐 发表于 2013-9-5 09:39:36

打破老婆终身制,实行小姨股份制。引入小姐竞争制,推广情人合同制。

xq8995209 发表于 2013-9-5 13:02:53

关羽五绺长髯,风度翩翩,手提青龙偃月刀,江湖人送绰号——刀郎。

lijm1522 发表于 2013-9-5 16:47:42

路过,支持一下啦

plantegg 发表于 2013-9-5 21:36:44

我妈常说,我们家要是没有电话就不会这么穷。

qazxsw1 发表于 2013-9-5 22:17:24

真是 收益 匪浅

赤色烙印 发表于 2013-9-6 18:19:21

花前月下,不如花钱“日”下!*^_^*
页: [1]
查看完整版本: ipdb 在 openstack 中使用