Results 1 to 3 of 3

Thread: VIM + Xdebug = Error Code 5

  1. #1
    Join Date
    Jul 2006
    Beans
    28

    Question VIM + Xdebug = Error Code 5

    Hey guys,

    I'm a PHP developer and I've started using vim recently. I can get around pretty quick but I'm not a total pro yet.

    My issue is I followed this tutorial: http://www.apaddedcell.com/easy-php-...xdebug-and-vim

    for hooking xdebug up to vim for debugging local php. It seemed to work with out a hitch until I actually try and step through or run to a break point then I receive this error and it drops the connection:
    Code:
    response xmlns:xdebug=http://xdebug.org/dbgp/xdebug xmlns=urn:debugger_protocol_v1 command=stack_get transaction_id=6
    error code=5 : Command not available (Is used for async commands. For instance if the engine is in state "run" than only "break
    message
    command is not available
    It seems like there is a possible version miss match or I possibly missed something when I set it up. Any insight would be appreciated.

  2. #2
    Join Date
    Dec 2007
    Location
    United States
    Beans
    2,900
    Distro
    Ubuntu

    Re: VIM + Xdebug = Error Code 5

    I suggest you post your issue to the xdebug mailing list:

    http://www.xdebug.org/support.php

    I bet you will get some help there. Good luck.

  3. #3
    Join Date
    Nov 2009
    Beans
    1

    Re: VIM + Xdebug = Error Code 5

    I had the same problem using xdebug + vim on ubuntu. The problem (for me) was that I was setting breakpoints on blank lines - make sure you put the breakpoint on a line with valid code!


    See also this thread:
    http://xdebug.org/archives/xdebug-general/1202.html


    Simon

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •