Waiting for the XDebug Session 57% in Eclipse PDT

前端 未结 7 1750
野性不改
野性不改 2020-12-15 23:34

Browsing the hints when I write this message it seems this is a tough question with all kind of patches, but no clear answer ... Anyway, I try my chance, here it is. I\'m us

相关标签:
7条回答
  • 2020-12-15 23:38

    I was struggling to setup xdebug and eclipse for an age.

    I use ubuntu 12.04 on a 32bit system. To setup the latest version of eclipse (juno) and the lamp tech stack i can strongly recommend this tutorial. There's a very good guide for setting up virtual hosts, too - script included.

    Instead of following their section on installing xdebug, rather use xdebug's custom installation instructions referred to by @hakre in a related post.

    Once xdebug shows up in the phpinfo output, you can continue by setting up eclipse for xdebug as described in the tutorial mentioned before.

    If it still doesn't work make sure you

    • have read the answer above
    • xdebug's port is free and matches eclipse's debug configuration -> server tab -> server section -> configure button (9030 by default!)

    and try

    • cutting the quotes from the zend_extension property within your php.ini file
    • putting all your xdebug-settings in your php.ini file - i dont have a xdebug.ini file in use.
    • repeating the filename within eclipse debug-configuration -> server tab -> url section -> last input field as shown below.

    enter image description here

    0 讨论(0)
  • 2020-12-15 23:39

    Try edit the php.ini at: wamp\bin\apache\Apache2.4.4\bin

    xdebug.remote_enable = on
    xdebug.remote_host="localhost"
    xdebug.remote_connect_back=1
    

    I had the ame issue - editing the php folder php.ini when using WAMP seems to be not enough.

    0 讨论(0)
  • 2020-12-15 23:42

    I found the problem for me was related to a specific browser, Firefox, and possibly due to an update of java to 7_21.

    See my solution here Eclipse, XAMPP, xDebug - waiting for XDebug session - stays in 57%

    0 讨论(0)
  • 2020-12-15 23:48

    I found that for me it was the missing xdebug.idekey=ECLIPSE_DBGP in c:>\php\php.ini

    Anyway this is my current php.ini configuration for xdebug, note I've not set the remote address:

    [xdebug]
    zend_extension=C:\php\ext\php_xdebug-2.9.6-7.3-vc15-nts-x86_64.dll
    xdebug.remote_enable=1
    xdebug.remote_connect_back=1
    xdebug.remote_handler=dbgp
    ;xdebug.remote_host=127.0.0.10
    xdebug.remote_autostart=1
    xdebug.remote_port=9000
    xdebug.show_local_vars=1
    xdebug.expose_remotely=always
    xdebug.default_enable=1
    xdebug.idekey=ECLIPSE_DBGP
    

    My environment: W10 x64, php7.3.18 non-threadsafe, IIS as webserver

    0 讨论(0)
  • 2020-12-15 23:51

    If Eclipse is stopping at 57%, then the remote debugging process couldn't be started. This might the case, when...

    • You didn't enable remote debugging in the file /PHP/php.ini:

      xdebug.remote_enable=on
      
    • the remote host ip address (client which starts debug session (your IDE)) isn't correct:

      xdebug.remote_host=IP_ADDRESS
      
    • Instead of defining the remote hosts ip address you can enable "multihost" remote debugging using:

      xdebug.remote_connect_back=1
      

    Also checkout the xdebug documentation for all settings: http://xdebug.org/docs/all_settings

    0 讨论(0)
  • 2020-12-16 00:00

    I had the exact same problem after I made a custom php build which accidentally replaced the original apache php module:

    /usr/lib64/httpd/modules/libphp5.so
    /usr/lib64/httpd/modules/libphp5-zts.so
    

    To me, the fix is:

    sudo rpm -e --nodeps php
    sudo dnf install php
    sudo service httpd restart
    
    0 讨论(0)
提交回复
热议问题