Waiting for the XDebug Session 57% in Eclipse PDT

廉价感情. 提交于 2019-11-29 03:44:51
Martin Rothenberger

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

Rasu

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.

RiggsFolly

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%

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.

I had the same issue and searched for ages trying to fix it! I verified everything with my remote host, my port listening, and my Eclipse settings. I finally found the problem was that I needed to specify the IDE for XDebug in my php.ini, like:

xdebug.idekey=ECLIPSE_DBGP

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!