`
joneswen
  • 浏览: 8618 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

Openstack Keystone Remote Debug

阅读更多
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')
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics