jaredly / vim-debug

A plugin for VIM that creates an Integrated Debugging Environment :) Currently works with PHP and Python
http://jaredforsyth.com/projects/vim-debug
MIT License
284 stars 28 forks source link

Error starting php debug #25

Open n3f opened 10 years ago

n3f commented 10 years ago

script:

<?php

phpinfo();

command:

:Dbg http://localhost/phpinfo.php

Error:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  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.

jaredly commented 10 years ago

Looks like you have xdebug running already... or something is already listening on that port, so there's a conflict.

On Fri, Mar 7, 2014 at 9:02 AM, n3f notifications@github.com wrote:

script:

<?php phpinfo();

command:

:Dbg http://localhost/phpinfo.php

Error:

Traceback (most recent call last): File "", 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.

Reply to this email directly or view it on GitHubhttps://github.com/jaredly/vim-debug/issues/25 .