Openstack Keystone Remote Debug

liangcy 2014-10-27

1.保持两端代码同步,并安装相同版本的pydev

2.在etc/keystone/keystone.conf增加以下参数

pydev_debug_host=10.10.10.10

pydev_debug_port=5678

3.修改PATHS_FROM_ECLIPSE_TO_PYTHONofpydevd_file_utils.pyofpydev

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:startthepydevserver”inEclipse

5.重启keystone,"ServiceKeystonerestart"

6.如果报pydevd找不着,在keystone-all插入sys.path.append('/usr/lib/python2.7/dist-packages/pysrc')

相关推荐