PHPStorm Debugging not working.

I have trouble debugging my program with PHPStorm 2017

Debugging was working perfectly fine in another application running on php 5.6
This however is now a php 7.4 application


See below the picture of my setup. It tests successful, but it never hits a breakpoint.
Infact if I run the program the network calls just stay on PENDING until I switch off debug at the top.

Then it loads the application or performs the action.

if my php.ini file I have the following code

; XDEBUG Extension
zend_extension = "e:/wamp/bin/php/php7.4.0/zend_ext/php_xdebug-2.8.0-7.4-vc15.dll"
[xdebug]
xdebug.remote_enable = true
xdebug.remote_port="9007"
xdebug.remote_log="e:/wamp/tmp/xdebug.log"
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "e:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.max_nesting_level=500

 

Please help



 

0

Hi there,

What's your PhpStorm version again? Exact version please.

You need to use PhpStorm 2018.3 or newer if you have to work with Xdebug 2.7 or newer (due to some changes in Xdebug protocol and the way how IDE handles that).

0

So can I just use my existing 

    php_xdebug-2.5.5-5.6-vc11.dll

instead of

    php_xdebug-2.8.0-7.4-vc15.dll


mmm okay, wanted to upgrade PHPStorm for a while now, so will give it a go thanks.

0

No.

If you have PHP 7.4 then you need to use Xdebug that supports that PHP version, which is Xdebug 2.7+. Even more: you need to use Xdebug that is compiled for/compatible with your PHP. https://xdebug.org/download

From what I know the max PHP version you will be able to use in your current PhpStorm (that supports Xdebug 2.6.x or older) is PHP 7.2: https://xdebug.org/docs/compat#versions

0

Okay thanks. I have now bought the new PHPStorm 2020.1.

Is there an easy way to upgrade from 2017.1 to 2020.1.

I dont want to be stuck setting up a lot of things again after doing it in 2017.1 already.

Thanks Andriy

0

IDE should pick it up automatically / ask about importing on first launch.

But then -- it's 2017.x to 2020.1 -- almost 3 years difference, some of the settings that have changed a lot since then you may need to double check and maybe even fix later (I always do 1 version after another and therefore cannot say if there will be any issues here).

Every major version stores their IDE-wide settings in separate folders so you can run them in parallel (just do not open the same project in different IDEs at the same time).

0

Been trying PHPStorm trial version. 

I love it until the debugging part.
It requires big amount of set up and it is still not working. The worse part is there is no way to find out why.

 

0

请先登录再写评论。