Unable to configure Xdebug using PhpStorm. Only index.php can catch a breakpoint

I am trying to configure the xdebug debugger using phpstorm. I am running xampp on Windows 7. Xdebug section in php.ini:

[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.5-5.5-vc11.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.idekey = "PHPSTORM"
xdebug.remote_port = 10000
xdebug.trace_output_dir = "C:\xampp\tmp"

In phpstorm, I checked this:

IDE found php and xdebug

In addition, I set the appropriate port:

enter image description here

After this I:

  • A bookmark has been created to run the debugger (generated on the jetbrain page) with the corresponding IDE key (PHPSTORM);

  • It uses a special extension for Google Chrome, which also sets cookies for this:

enter image description here

And finally, I even turned off my firewall (before that I tried to add a rule, but that didn't help).

, , . " " IDE, . , Xdebug .

, , index.php. / , index.php.

phpinfo() xdebug:

enter image description here

+4
2

: PHPStorm

→ PHP → , .

+3

,

In my case phpstorm (windows) + yii2 / xdebug (linux on vmbox)

c:\phpstormprojects\yii\models -> /home/yii/apps/yii/models

etc.

+1
source

All Articles