Cannot force XDebug to establish a connection in Vim. Getting the "no attribue" stop "error

Judging by how many search engines get into this error message, I know this is a common problem, but there are no useful answers.

I am trying to configure XDebug in Vim using the Sam Ghods Debugger.vim script, following the instructions How to debug PHP with Vim and XDebug on Linux (which is usually the source of links to get Vim settings using XDebug). I am running MacVim 7.3 on OSX 10.6, and when I try to connect the debugger to the server, I get:

(<type 'exceptions.AttributeError'>, AttributeError("DbgProtocol instance has no attribute 'stop'",), <traceback object at 0x104595680>)
  File "/Users/tjlahr/.vim/plugin/debugger.py", line 1078, in debugger_run
    debugger.run()
  File "/Users/tjlahr/.vim/plugin/debugger.py", line 928, in run
    self.protocol.accept()
  File "/Users/tjlahr/.vim/plugin/debugger.py", line 560, in accept
    self.stop()

Does anyone have any experience fixing this error?

Please note that I am not debugging port 9000 because it seems to be in conflict with fastcgi included in PHP. Therefore, I am debugging port 9001 and changing the settings in the php.ini and g: debuggerPort parameters, respectively.

Thank you for your help.

+3
source share
2 answers

It seems that "AttributeError (" The DbgProtocol instance does not have the attribute "stop", ")" is a common mistake.

I just installed XDebug and the debugger.vim plugin and received this message. My problem was that remote debugging was not enabled. Create a phpinfo file:

<?php
    phpinfo();
?>

- - xdebug, . xdebug-v2.2.0-dev, GitHub, xdebug.remote_enable false. php.ini 1 xdebug.

, xdebug debugclient, . INSTALL , .

, , script VIM -, 5 , script, , -.

+2

Source: https://habr.com/ru/post/1792808/


All Articles