Eclipse PDT + xdebug: step by step code

I am using PHP 5.6.2 with xdebug 2.2.5 and Eclipse 4.4.1 with PDT 3.3.1. I am trying to set up a debugger (xdebug) on ​​a local server (localhost) and something seems to be broken.

When I start a debug session, eclipse switches to the debug perspective and stops at the first line (as specified in config). The problem is that while the debugger (in the debug window) seems to do execution as the code goes through (it shows lines of code as it goes along), the window below opens the source file and shows the code stays at the first position, such as / breakpoint. It seems to be disconnected from the debugger ...

Does anyone know how to fix this problem? Is it me, or is there a mistake in this? It was used to work with the old php / eclipse combination. I have updated php to 5.6 in between as well as all its dependencies. The same goes for eclipse. It is difficult to point out the problem at this stage.

I am using nginx with php-fpm.

Xdebug configuration in php.ini

[xdebug]
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"

      

+3


source to share


1 answer


This is a duplicate of xdebug's work , but failing to transition to it



You need the latest PDT-night or downgrade for luna 4.4.0

+4


source







All Articles