简体   繁体   中英

Why do xdebug and the DBGp client vim plugin fail to debug PHP?

I have configured xdebug and installed a vim plugin to debug PHP. The link of this plugin is http://www.vim.org/scripts/script.php?script_id=1929 . But once I open a PHP file and press F5, it opens that PHP page from a remote pc, an error is shown, and the debug fails at this place. There is no step in or step over, why?

The detail of the error message is as follows:

waiting for a new connection on port 9001 for 5 seconds...
connection from  ('127.0.0.1', 48460)
Connection closed, stop debugging (<class exceptions.ImportError at 0xb7a6f3ec>, <exceptions.ImportError instance at 0xb7a047ec>, <traceback object at 0xb7a1
102c>)

This is a rather old plugin that seems to be using out of date python libraries . However, there seem to be some newer plugins available:

  1. DBGPavim
  2. DBGp Remote Debugger

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM