Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-3210

Xdebug connects, NetBeans does not respond

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 11.0, 11.1
    • None
    • php - Debugger
    • None
    • Windows 10 1903, Apache 2.4.41 (Win64), PHP 7.3.9, Xdebug 2.7.0RC2, NetBeans 11.1, Java JRE 8u221

    Description

      When trying to debug a PHP application with Xdebug, NetBeans status shows "Waiting For Connection (netbeans-xdebug)..." while the Xdebug remote log states it is connected. The log also states it sends the <init /> string to NetBeans but never receives a response.

      I am using a local XAMPP server.

      This works successfully (without changing anything) with VSCode so this seems to be an issue with NetBeans not understanding/liking the <init /> string that is sent so it never responds.

      I have tried:

      • Changing debugger port from 9000 in the three areas (php.ini, NetBeans Options/PHP/Debugger, Project Properties/Run Config/Advanced)
      • Disabling Windows Firewall
      • Reinstalling NetBeans
      • Tried with NetBeans 11.0
      • Listening on IP instead of localhost or 127.0.0.1

      Xdebug remote log:

      [1924] Log opened at 2019-10-06 23:47:53
      [1924] I: Checking remote connect back address.
      [1924] I: Checking header 'HTTP_X_FORWARDED_FOR'.
      [1924] I: Checking header 'REMOTE_ADDR'.
      [1924] I: Remote address found, connecting to 192.168.0.222:9000.
      [1924] I: Connected to client. :-)
      [1924] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///E:/Programming/PHP/vintage-lib/webroot/index.php" language="PHP" xdebug:language_version="7.3.3-dev" protocol_version="1.0" appid="1924" idekey="netbeans-xdebug"><engine version="2.7.0RC2"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2019 by Derick Rethans]]></copyright></init>
      [1924]

      php.ini:

      zend_extension = "c:/xampp/php/ext/php_xdebug.dll"
      xdebug.idekey = netbeans-xdebug
      xdebug.profiler_append = 0
      xdebug.profiler_enable = 0
      xdebug.profiler_enable_trigger = 0
      xdebug.profiler_output_dir = "c:/xampp/tmp/xdebug"
      xdebug.profiler_output_name = "cachegrind.out.%t-%s"
      xdebug.remote_enable = 1
      xdebug.remote_autostart = 0
      xdebug.remote_connect_back = 1
      xdebug.remote_port = 9000
      xdebug.remote_handler = "dbgp"
      xdebug.remote_mode = req
      xdebug.remote_log = "c:/xampp/tmp/xdebug/xdebug_remote.log"
      xdebug.show_local_vars = 9
      xdebug.trace_output_dir = "c:/xampp/tmp"

      Attachments

        1. 2019-10-06 19_59_30-Window.png
          28 kB
          Brandon McWhirter
        2. 2019-10-06 19_59_03-Window.png
          22 kB
          Brandon McWhirter
        3. 2019-10-06 19_59_20-Window.png
          2 kB
          Brandon McWhirter

        Activity

          People

            Unassigned Unassigned
            arcanephoenix Brandon McWhirter
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: