Can't get xdebug and phpStorm play nice!

Checks done:- 

  1. Valet php71-xdebug installed and working ( checked using php -v ). I've php 7.1.5 and xdebug 2.5.4
  2. [xdebug]
    zend_extension="/usr/local/Cellar/php71-xdebug/2.5.4/xdebug.so"
    xdebug.remote_enable=1
    xdebug.remote_host=localhost
    xdebug.remote_port=9001
  3. Above configuration is present inside /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini 
  4. I've also tried adding this configuration to php.ini file; but it doesn't make any difference.
  5. Port configured to 9001 in phpStorm

Whenever I click the telephone icon to start the debugger; and reload by webpage, I get debug session was finished without being paused error. 

I'd be really thankful if you could help me fix this issue. I've already spent 6+ hours on this. 

0

Did you set a breakpoint in the code?
And also please check your path mappings in Preferences | Languages & Frameworks | PHP | Servers.
https://confluence.jetbrains.com/display/PhpStorm/Troubleshooting+PhpStorm+debugging

0

I have the same issue.

XDebug works (breaks on defined breakpoint) on PHP 7.0,20 but will not break when PHP 7.1.6 is used on the same project.

OS. Ubuntu 17.04

PHPStorm: 2017.1.4

Xdebug: 2.5.5 in both cases (with different paths according to the used PHP version)

PHP Packages used: https://launchpad.net/~ondrej/+archive/ubuntu/php

 

0

I would suggest to add xdebug.remote_log=/log_path/xdebug.log to php.ini for both interpreters (7.0.20 & 7.1.16) and compare the generated log accordingly

0

请先登录再写评论。