D
D
Denis2016-11-17 12:39:27
PHP
Denis, 2016-11-17 12:39:27

Why installed xDebug doesn't work in PHPStorm?

The problem is that
xDebug is installed, but PHPStorm doesn't want to work with it. Server local Apache/2.4.23 (Unix)
I've been fighting for more than a day, I'm asking for help.
Operating system macOS Sierra 10.12.1

php -v
PHP 5.6.27 (cli) (built: Oct 24 2016 16:08:27) 
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    with Xdebug v2.4.1, Copyright (c) 2002-2016, by Derick Rethans

php --ini
Configuration File (php.ini) Path: /usr/local/etc/php/5.6
Loaded Configuration File:         /usr/local/etc/php/5.6/php.ini
Scan for additional .ini files in: /usr/local/etc/php/5.6/conf.d
Additional .ini files parsed:      /usr/local/etc/php/5.6/conf.d/ext-apcu.ini,
/usr/local/etc/php/5.6/conf.d/ext-opcache.ini,
/usr/local/etc/php/5.6/conf.d/ext-ssh2.ini,
/usr/local/etc/php/5.6/conf.d/ext-xdebug.ini

From phpinfo()
9afc2484b6134186a2e73b7f3e8d61d9.png91ee56aeca0143a0bf73b9f2803a1e9d.png
PHPStorm
45c74fa0f4434749b959bb78942f0879.png
/usr/local/etc/php/5.6/conf.d/ext-xdebug.ini
zend_extension="/usr/local/Cellar/php56-xdebug/2.4.1/xdebug.so"

xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_mode=req
xdebug.idekey="PHPSTORM"

PHPStorm Run | Web Server Debug Validation
3a9fbcf2fe3e4776b4f765be4be757dc.jpgac6a220692bf434aac64949188f1decf.png8f518965bdd04a7ba2d32eb9c512646c.pngaf68e5c43e9e480e82876d11682160ec.pnga3d03480171c4a95a2ddd9e12920bf43.jpg
Chrome:
ef2feaaa20df46c59400ac5f78fd8894.pngbd43690919c04f62985aa6f3e580a657.png
Breakpoint on the script that is being debugged, in the browser I launch the page on which I set the breakpoint

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
romy4, 2016-11-17
@romy4

try with xdebug.remote_connect_back=1
or pass ?XDEBUG_SESSION_START=PHPSTORM in the parameters,
he needs to somehow know that you are starting debugging

T
Tema, 2016-11-17
@Tem_ka

Try setting PHP -> Debug -> DBGp Proxy Host to 127.0.0.1
Also in PHP -> Debug Debug Port set to 9001 as well as in PHP -> Debug -> DBGp Proxy Port

A
Alex Me, 2016-11-17
@iamjack

this is not the first time I see problems in the PhpStorm + xDebug + macOS bundle . I can not help with a solution, because. already tried to no avail =( But you can try to write to that person, mb there will be some clue - How to defeat xdebug?

K
krenar, 2018-04-02
@krenar

still simple, this article helped me Configuring XDebug PHPStorm
the most important thing to do there is xdebug.remote_autostart=on
so that xdebug starts, not on a GET / POST request, but always listens to the connection. Then there will be no problems

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question