Instalacja wyglądała tak:
1. Zainstalowałem XAMPP 3.2.1
3. Nadłem na wszelki wypadek prawa administracyjne dla NetBeans i XAMPP.
4. Podmieniłem xdebug.dll który był już standartowo dodawany przez XAMPP na najnowszy.
5. W php.ini dodałem:

Kod
zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 1
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = "req"
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.file_link_format = "netbeans://open/?f=%f:%l"
xdebug.idekey="netbeans-xdebug"


3. Próbowałem także zmieniać porty.

Przy każdej zmianie php.ini restartowałem Apache. Xdebug działa, jednak NetBeans nie może się z nim niestety połączyć.

Pracuję w Windows 7 Ultimate 32-bit z NetBeans 7.2.1.

PS. Spróbowałem uruchomić to z parametrem XDEBUG_SESSION_START=netbeans-xdebug:
Kod
$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);

Jendak nic się nie dzieje, a po 30s Fatal error: Maximum execution time of 30 seconds exceeded in C:\xampp\htdocs\test.php on line 21.