Skip to content

Error starting php debug #25

@n3f

Description

@n3f

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions