Error starting php debug
- 主要语言
- Python
- 星标
- 284
- 派生
- 27
- PR 合并指标
- 30 天内没有已合并 PR
描述
script:
``` php
", line 1, in
File "/usr/local/lib/python2.7/dist-packages/vim_debug/commands.py", line 19, in debugger_cmd
return start(*shlex.split(plain))
File "/usr/local/lib/python2.7/dist-packages/vim_debug/commands.py", line 92, in start
debugger.start_url(url)
File "/usr/local/lib/python2.7/dist-packages/vim_debug/new_debugger.py", line 103, in start_url
return self.start()
File "/usr/local/lib/python2.7/dist-packages/vim_debug/new_debugger.py", line 130, in start
if not self.bend.connect():
File "/usr/local/lib/python2.7/dist-packages/vim_debug/dbgp.py", line 86, in accept
serv.bind(('', self.options.get('port', 9001)))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
```
I have xdebug configured to run on port 9001, so I changed dbg.py to use that port. (I don't know if there is a vim configuration variable to change this, but I don't think that this is the problem. I'm running vim 7.4.
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先,使用报告中的 PHP 和 Xdebug 配置重现 :Dbg http://localhost/phpinfo.php 命令,然后阅读 vim_debug/commands.py 和 vim_debug/dbgp.py 中调试器启动和 socket bind 调用附近的代码。完成的标准是理解所报告的地址已被使用的失败原因,并且调试器能够使用配置的端口启动,同时记录任何相关的配置行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- php, python, vim
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100