[xdebug-general] Xdebug problem

From: <rcgaff[@]comquestcorp.com>
Date: Sun, 17 Feb 2013 22:06:54 -0600

Hi,

 

I am having a very strange problem trying to debug a WordPress installation
using VS.php and Xdebug. As suggested I copied the output from "php -i" into
the tool on your website and it said things were installed ok. This is a
CentOS Server running in a VirtualBox VM on a Windows 7 Pro/64 bit machine.

 

Here is my problem. When I start the httpd service I am never able to
connect - I get the following output in xdebug.log:

 

Log opened at 2013-02-17 21:26:36

I: Connecting to configured address/port: 192.168.56.1:7870.

E: Could not connect to client. :-(

Log closed at 2013-02-17 21:26:36

 

I can see in xdebug_com.c that either the socket creation or the connect
call fails - you can't tell which from the logged messages.

 

Now here is the strange part. If I stop the httpd service and start it from
the command line instead (as root) I am able to connect - but still get some
error messages:

 

Log opened at 2013-02-17 21:27:27

I: Connecting to configured address/port: 192.168.56.1:7870.

I: Connected to client. :-)

-> <init xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug"
fileuri="file:///var/www/html/index.php" language="PHP"
protocol_version="1.0" appid="21745" idekey="15"><engine
version="2.2.1"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick
Rethans]]></author><url><![CDATA[http://xdebug.org]]></url><copyright><![CDA
TA[Copyright (c) 2002-2012 by Derick Rethans]]></copyright></init>

 

<- ACK: 450

-> <response xmlns="urn:debugger_protocol_v1"
xmlns:xdebug="http://xdebug.org/dbgp/xdebug" command="ACK:"><error
code="3"><message><![CDATA[invalid or missing
options]]></message></error></response>

 

Do you have any thoughts as to why Xdebug can't connect to VS.php client
with httpd started as a service? Any ideas as to what the "invalid or
missing options" might be? (I pasted my php.ini settings at the bottom)

 

Thanks!!!

 

Bob Gaffaney

Comquest Corporation

 

 

In xdebug.ini:

===========

zend_extension=/usr/lib/php/modules/xdebug.so

 

In php.ini:

=========

[xdebug]

xdebug.remote_enable = 1

xdebug.remote_host = "192.168.56.1"

xdebug.remote_connect_back = 0

xdebug.remote_log = "/tmp/xdebug.log"

xdebug.idekey = vsphp

xdebug.remote_port = 7870

xdebug.remote_autostart = 1

xdebug.var_display_max_children = 1024

xdebug.var_display_max_data = 2048

xdebug.var_display_max_depth = 1

 
Received on Mon Feb 18 2013 - 04:15:09 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST