欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Openstack Keystone Remote Debug 博客分类: OpenStack eclipsepythonopenstackkeystone

程序员文章站 2024-03-14 11:06:16
...
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')