Installing XDebug in Netbeans


XDebug allows a program at run-time debug and Step by Step.

This should be the first to use the following tool to install to install the correct version:

  1. XDebug Installations Hilfe Tool
  2. To control after installing the tool can be used again and it should be under Xdebug installed: 2.x show
  3. php.ini settings to suit:
    xdebug.remote_enable=onxdebug.remote_handler=dbgp
    xdebug.remote_host=localhost
    xdebug.remote_port=9000
    xdebug.remote_log=" \xampp\htdocs\xError.log"
  4. After that should be geteste, ob der Port 9000 is released with the following script:
    $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);
  5. Thereafter, in Netbeans project with debug (CTRL F5) and a break point, the right project to be debugged. If it does not work, the URL in the browser can be adjusted manually:http://localhost/class.php?XDEBUG_SESSION_START=netbeans-xdebug