xdebug and phpStorm issue

已回答

I've the latest phpStorm: 2020.2.1

and the output of php --version is

Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Xdebug v2.9.6, Copyright (c) 2002-2020, by Derick Rethans
with Zend OPcache v7.4.9, Copyright (c), by Zend Technologies

My php.ini configuration:

[xdebug]
zend_extension="/usr/local/Cellar/php/7.4.9/pecl/20190902/xdebug.so"
xdebug.remote_autostart=1
xdebug.remote_port=9001
xdebug.remote_connect_back=1
xdebug.default_enable=1
xdebug.default.idekey=PHPSTORM

I've triple-checked everything; and I've done this before; but not this time!

I can't seem to get phpStorm to stop at my breakpoints. Is it a bug or am I missing out on some step? Please help me figure out. 

0

Please describe your setup. Are you running local web server?

You're also missing the xdebug.remote_enable=1 line in your php.ini.

0

I promise xdebug.remote_enable=1 in my config before posting above message. I added it again and then it said the IDE KEY had problem. So I set

xdebug.idekey=PHPSTORM

... and now it works like magic! 

 

0

请先登录再写评论。