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

xdebug not working with NetBeans 11.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 11.0, 11.1, 11.3
    • None
    • php - Debugger
    • None
    • Windows 10 64 bit

    Description

      I tried xdebug 2.7.2 with PHP 7.2.5 running on a remote linux openSUSE server.

      It does not start the debugger and says "Waiting for debugger (netbeans-xdebug)" but nothing happens.

      If I try it in NetBeans 8.2 then it works.

       

      The configuration is the same in both NetBeans (Port, IDE key)

       Java: jdk1.8.0_172, jre1.8.0_181

       

      Reproduction:

      1. Install xdebug 2.7.2 from source by following instructions from here https://github.com/xdebug/xdebug
      2. Set the following in php.ini
      [XDebug]
      zend_extension = /usr/lib64/php7/extensions/xdebug.so
      xdebug.remote_connect_back=0
      xdebug.force_display_errors=on
      xdebug.force_error_reporting=on
      xdebug.remote_enable=on
      xdebug.remote_handler=dbgp
      xdebug.remote_host=192.168.40.161   #replace with IP of your remote client where netbeans runs
      xdebug.remote_port=51234
      xdebug.remote_timeout=3000
      xdebug.remote_mode=req
      xdebug.remote_log=/var/log/xdebug/xdebug.log
      xdebug.idekey = netbeans-xdebug
      xdebug.renite_enable = 1
      xdebug.max_nesting_level = 1000
      xdebug.profiler_enable_trigger = 1
      xdebug.profiler_output_dir = '/var/log/xdebug'

      3. Restart apache2 service

      4. Check if xdebug is installed by checking phpinfo

      5. open Netbeans 11.1

      6. Go to Tools > Options -> PHP -> Debugging

      7. set "Debugger Port" to 51234

      8. set "Session ID" to netbeans-xdebug

      9. open a test script

      10. right click -> Debug File

      11. Notice that "Wating for Connection (netbeans-xdebug)" shows forever and nothing happens.

      /var/log/xdebug/xdebug.log:

      [22426] Log opened at 2019-08-01 07:01:46
      [22426] I: Connecting to configured address/port: 192.168.40.161:51234.
      [22426] E: Time-out connecting to client (Waited: 3000 ms). :-(
      [22426] Log closed at 2019-08-01 07:01:49

       

      12. Do the same on Netbeans 8.2 and notice that it works

      Attachments

        1. netbeans-2929-screenshot.png
          43 kB
          Junichi Yamamoto
        2. image-2019-09-04-21-01-04-879.png
          45 kB
          Lyubomir Parvanov
        3. image-2019-09-04-21-00-31-797.png
          27 kB
          Lyubomir Parvanov
        4. image-2019-09-04-20-59-59-909.png
          41 kB
          Lyubomir Parvanov
        5. image-2019-09-04-20-51-37-754.png
          122 kB
          Lyubomir Parvanov

        Activity

          People

            Unassigned Unassigned
            Edd E. Fekete
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: