xdebug not working after upgrading to Php7
Answered
Help,
Before in Php 5 with PhpStorm debugging localhost was working great.
After upgrading to php7 the code is working, but it is not hitting any breakpoints.
I have rebooted and looked through the help files just not sure what to try next.
Below are a few images.
Please sign in to leave a comment.
One more piece to the puzzle.
In Wamp I can change the php version by clicking on the Wamp icon in the system tray.
When I switched it back to Php5 the debugger worked like it used to.
Then I switched it back to Php7 and the debugger does not work.
I also noticed that when I Select Xdebug profiler snapshot it is pointing at the php5 directory.
When I look in wampmanager.ini there are over 1,000 references to Php5 and only a handful to Php7.
Still trying to figure this out.
Got it working.
I changed the wampmanager.conf phpVersion variable in one place which updated the over 1000 references to php5 in wampmanager.ini file.
I also went back to version 2.5.5-7.1 in xdebug and also changed this in the apache php.ini file.
I may have done a few other things like standing on my head and hopping on one foot but I can't recall the sequence.
That said when I go into CLI Interpreters the PHP 5.6 setting shows Debugger working, however PHP 7 shows Debugger: Not installed. Even though the Debugger extension is pointing right to the correct dll file.
But it is working for now so I am moving on.
I found xdebug no longer worked after I upgraded to php 7.2. I had to turn off php-fpm. `sudo brew services stop php`. do sudo lsof -i tcp:9000 to check what's listening on port 9000
@Henrypenny Thank you very much for your advise!
For my case it is:
Mac os Mojave, PhphStorm 2018.2, apache 224 and php 7.1; 5.6 installed via brew:
https://getgrav.org/blog/macos-mojave-apache-multiple-php-versions
xdebug via pecl
And 9000 port was occupied by php-fpm, I did next: