[xdebug-general] Issue Remote debugging not working

From: John Hermsen <john[@]fam-hermsen.nl>
Date: Sun, 25 Dec 2011 13:08:31 +0100

I'm going a bit crazy here, can't find the cause of it not working.
Config:
[xdebug]
zend_extension=/usr/lib64/php/modules/xdebug.so
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.remote_handler=dbgp

I am testing with 2 scripts below.
xdebug.php:
<?php
    function fix_string($a)
    {
        echo "Called @ ".
            xdebug_call_file().
            ":".
            xdebug_call_line().
            " from ".
            xdebug_call_function();
    }

    $ret = fix_string(array('Derick'));
?>

test.php:
<?php
$address = '127.0.0.1';
$port = 9000;
$sock = socket_create(AF_INET, SOCK_STREAM, 0);
socket_bind($sock, $address, $port) or die('Unable to bind');
socket_listen($sock);
$client = socket_accept($sock);
echo "connection established: $client";
socket_close($client);
socket_close($sock);
?>

First I did an install on my Mac(MAMP) without issue both scripts worked.

Then I did a basic CentOS install with debug.
And xdebug.php works gives proper response, but test.php keeps waiting and using browser it return unable to bind

Any help is welcome I'm going nuts here :)

Thanks,
John
Received on Sun Dec 25 2011 - 12:14:30 GMT

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