Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't set up Xdebug with PhpStorm. Only index.php can catch the breakpoint

I'm trying to set up xdebug debugger with phpstorm. I'm 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've checked this:

IDE found php and xdebug

Also, I've set appropriate port:

enter image description here

After that I've:

  1. Created bookkmark to start debugger(generated on jetbrain's page) with appropriate IDE key(PHPSTORM);

  2. Used special extension for Google Chrome, which also set cookies for this:

enter image description here

And finally, I've even disabled my firewall(before this I tried to add rule, but this didn't helped).

What I wrote here, didn't helped me to catch the breakpoint. I clicked on the "phone button" inside IDE, this also didn't helped. And, I want to emphasize, that incoming request from Xdebug also didn't came on first use.

Also, I want to mention that only index.php debugging works. Any controller/action doesn't, but only index.php do.

In phpinfo() xdebug is also present:

enter image description here

like image 914
Grokking Avatar asked Oct 29 '25 12:10

Grokking


1 Answers

See this: Map one directory path to another in PHPStorm

In Settings -> PHP -> Server, map all the folders you need to debug files in.

like image 199
pcambra Avatar answered Oct 31 '25 10:10

pcambra



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!