View Issue Details

IDProjectCategoryView StatusLast Update
0000917Xdebugpublic2013-03-11 11:40
ReporterGraham Assigned Toderick  
PriorityurgentSeveritymajorReproducibilityalways
Status resolvedResolutionunable to reproduce 
PlatformWindowsOSWindows 8OS VersionWindows 8
Product Version2.2.1 
Summary0000917: Unable to connect to xdebug
Description

Xdebug 2.2.1 installed with PHP 5.4.3 / Apache 2.2.22.

Unable to connect using the following script. No errors - it just sits there.
<?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);
?>

Unable to connect via Netbeans.

netstat shows port 9000 not used.

phpinfo() shows xdebug installed OK with correct options
e.g.
xdebug support enabled
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
Version 2.2.1
IDE Key DESKTOP$......etc.etc...

No xdebug log file created.

No apache errors on startup in logs.

Apache php.ini is
zend_extension = "c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.1-5.4-vc9.dll"

[xdebug]
xdebug.remote_enable = on
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_log="c:/wamp/logs/xdebug.log"
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"

Batch PHP ini is

zend_extension = "c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.1-5.4-vc9.dll"

[xdebug]
xdebug.remote_enable = on
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_log="c:/wamp/logs/xdebug_batch.log"
xdebug.profiler_enable = on
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"

Any ideas???

TagsNo tags attached.
Operating SystemWIndows 8 Pro
PHP Version5.4.3

Activities

derick

2013-03-09 22:09

administrator   ~0002442

The only thing I can think of is that there is a firewall in the way somewhere. Try to telnet to port 9000, does that work?

You should definitely get output in the xdebug remote log file though, are you sure you're not using curly quotes, and are permissions set right?

Graham

2013-03-11 06:27

reporter   ~0002448

Since posting this problem xdebug has started to work. Can't say I have any useful explanation on why it now works. Thanks anyway. Please close the issue.

derick

2013-03-11 11:40

administrator   ~0002449

Okay, I'm closing it then.

cheers,
Derick

Issue History

Date Modified Username Field Change
2013-01-15 10:32 Graham New Issue
2013-03-09 22:09 derick Note Added: 0002442
2013-03-09 22:09 derick Assigned To => derick
2013-03-09 22:09 derick Status new => feedback
2013-03-11 06:27 Graham Note Added: 0002448
2013-03-11 06:27 Graham Status feedback => assigned
2013-03-11 11:40 derick Note Added: 0002449
2013-03-11 11:40 derick Status assigned => resolved
2013-03-11 11:40 derick Resolution open => unable to reproduce
2016-07-31 12:35 derick Category Debug client (console) => debugclient (debugging tool)
2016-07-31 12:35 derick Category debugclient (debugging tool) => (No Category)