View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-12-2010, 09:56 PM   #1
LQ Newbie
Registered: Oct 2008
Posts: 19

Rep: Reputation: 0
vim not connecting with xdebug for php debugging

I'm running Ubuntu server 9.10 karmic koala and my client is also ubuntu 9.10 karmic. I've installed xdebug on the server and added to the php.ini file:
zend_extension = /full/path/to/
xdebug.remote_enable = 1
xdebug.remote_port = 9000
xdebug.remote_host = localhost
xdebug.remote_handler = dbgp

Vim and the proper plugins (debugger.vim and are both installed. I load the php file under consideration in my browser on the client with ?XDEBUG_SESSION_START=1 as part of the URL. I then vim the php file, press F5 and reload the page in firefox. Vim shows that it is waiting for 5 seconds for the connection. After 5 seconds it shows an error message that says:
<type 'exceptions.AttributeError'>, AttributeError("DbgProtocol instance has no
File "/usr/share/vim/vim72/plugin/", line 1078, in debugger_run
File "/usr/share/vim/vim72/plugin/", line 928, in run
File "/usr/share/vim/vim72/plugin/", line 560, in accept

After some googling it has become apparent that these messages mean nothing and the problem is that the connection is just never happening. Xdebug is supposed to be working on port 9000. I've looked at /etc/services and nothing else is mapped to port 9000. I've tried ssh -p 9000 xxx@a.b.c.d and had the connection refused (ssh without a port spec works fine). Now I don't know what to do to get this thing working and I really want it working. HELP!
Old 02-24-2010, 03:59 AM   #2
LQ Newbie
Registered: Oct 2008
Posts: 19

Original Poster
Rep: Reputation: 0
After having been away for a bit I've come back to this problem and have found that previously I was brain dead. The problem was the setting xdebug.remote_host = localhost. I'm not working on the localhost (my server). So I just had to change the value localhost to my ip address, in my case. I'm posting this in case it helps someone else in the future. Cheers.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache + PHP xdebug + fcgid = read data timeout in 40 seconds Miggleness Linux - Software 1 12-18-2009 10:43 AM
Debugging PHP? waelaltaqi Linux - Newbie 14 12-05-2008 01:05 AM
LXer: Debugging PHP using Eclipse and PDT LXer Syndicated Linux News 0 06-18-2008 10:36 AM
LXer: How to Debug PHP with Vim and XDebug on Linux LXer Syndicated Linux News 0 03-04-2008 05:40 AM
LXer: Debugging PHP with Firebug LXer Syndicated Linux News 0 02-20-2007 12:16 AM

All times are GMT -5. The time now is 09:49 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration