你的分享就是我们的动力 ---﹥

Openstack Keystone Remote Debug

时间:2014-10-29 15:32来源:www.chengxuyuans.com 点击:
1. 保持两端代码同步,并安装相同版本的pydev
2. 在etc/keystone/keystone.conf增加以下参数
pydev_debug_host = 10.10.10.10
pydev_debug_port = 5678
3. 修改PATHS_FROM_ECLIPSE_TO_PYTHON of pydevd_file_utils.py of pydev
PATHS_FROM_ECLIPSE_TO_PYTHON = [(r'/Users/xinwen/Documents/OpenStack/keystone/bin/keystone-all', r'/usr/bin/keystone-all'),
                                (r'/Users/xinwen/Documents/OpenStack/keystone/keystone/', r'/usr/share/pyshared/keystone/')]
各参数具体意思参见文件中的说明
4. 启动“PyDev : start the pydev server” in Eclipse
5. 重启keystone, "Service Keystone restart"
6. 如果报pydevd找不着,在keystone-all插入sys.path.append('/usr/lib/python2.7/dist-packages/pysrc')

转载注明地址:http://www.chengxuyuans.com/Python/83744.html

推荐文章