gwomacks / php-debug

Atom Text Editor package for PHP debugging
MIT License
119 stars 31 forks source link

Connected but don't stops #204

Closed devgiu closed 7 years ago

devgiu commented 7 years ago

Hi,

My journey with php-debug is half love half hate :D I used it a lot, and worked as expected, perfectly. Now, I'm trying to set it up on my new machine, and I can't. I have Xdebug enabled, atom extension configured, and using firefox xdebug helper with atom.xdebug as key.

WHen I access my page with breakpoints in code, Page is loaded normally, and in Atom, I see PHP-Debug as connected, but didn't stopped in the first breakpoint I put, but page was executed completly.

This is my xdebug section in my php.ini (Uniform Server)

[xdebug]
zend_extension=${US_ROOTF}/core/php56/extensions/php_xdebug.dll
# xdebug.remote_autostart=off
#xdebug.remote_enable=on
#xdebug.remote_host=127.0.0.1
#xdebug.remote_port=9000
#xdebug.remote_handler=dbgp
#xdebug.remote_mode=req
#xdebug.idekey=default
#xdebug.remote_connect_back=1    # Not safe for production servers

xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_connect_back=1    # Not safe for production servers
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart=true

First block is commented because doing test trying to find why is not working.

2016-12-16 10_12_28-screenshot

I have in the extension all Stops to ON.

My config looks like this

2016-12-16 10_19_13-screenshot

Some idea? Going crazy with this since weeks.

devgiu commented 7 years ago

Nevermind, seems like xdebug versions that comes with uniform-server. I downloaded a new one from xdebug website, and now is working.