简体   繁体   中英

problem with xdebug vim plugin

I am using xdebug plugin for vim. After making few changes i was able to run debugger but not able to set breakpoints. So, I enabled xdebug.remote_log and below is the log statements corresponding to setting breakpoint.

<- breakpoint_set -i 5 -t line -f file:///C:\\htdocs\\testLocal.php -n 36 ->

Its issuing request to debugger in proper format only but no idea why debugger is returning "command is not avilable". Please let me know if anything is wrong.

Make sure you set breakpoints on lines that contain a php expression, not on blank lines or lines containing just a closing bracket.

Setting breakpoints on blank lines doesn't work, and returns the cryptic 'command not found' error you are getting.

I had the same problem. When I checked the xdebug logs, it showed file:///http://myapp.local As you see my ide (PHP eclipse) seems to insert the extra "http://" treating this as a URL instead of a file.

Luckily, this was the case with just my index.php. Other file breakpoints were being communicated correctly to xdebug and I was able to set and hit breakpoints on php expression as long as they didn't know span multiple lines. The latter for some reason would cause breakpoints to not hit and just pass by.

Hope this helps!

I recently just installed this same thing and found a tutorial by Blake Johnson all about installing and using Xdebug from within Vim.

Also, try clearing any cookies on the page you might have. This often times would cause the plugin to get screwed up in a strange way.

我在“ file:/// C:\\ htdocs \\ testLocal.php”中发现了一个额外的“ /”,可能是vim插件与Windows文件路径不兼容?

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