G
G
Greg Popov2016-06-10 21:37:08
Yii
Greg Popov, 2016-06-10 21:37:08

How to defeat xdebug?

Hello. Local, found apache, php56 (via brew installed), iMac.
Xdebug doesn't want to work.
php.ini

[xdebug]
zend_extension="/usr/local/Cellar/php56-xdebug/2.4.0/xdebug.so"
xdebug.default_enable = 1
xdebug.remote_autostart = 0
xdebug.remote_enable=1
xdebug.remote_handler="dbgp"
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9001
xdebug.remote_mode=req
xdebug.idekey="PHPSTORM"
xdebug.coverage_enable=1 
xdebug.profiler_enable=1
xdebug.profiler_output_dir = "/tmp/xdebug/"

phpinfo() says it has
b8c5d04af1af44d59832e4d9bb256b27.png1941e33265a944f2b1d3a33a6e91d9bc.png
vhosts config
<VirtualHost *:80>
   DocumentRoot "/Users/greg/Sites"
   ServerName localhost
</VirtualHost>

<VirtualHost *:80>
  ServerName technostar.dev
  ServerAlias www.technostar.dev

  DocumentRoot "/Users/greg/Sites/technostar/"
  ErrorLog "/private/var/log/apache2/technostar.dev-error_log"
  CustomLog "/private/var/log/apache2/technostar.dev-access_log" common
  
  <Directory "/Users/greg/Sites/technostar/">
    Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
  </Directory>
</VirtualHost>

Settings on PhpStorm:
914a4895c9404e1d95ea9ad67ce2a479.pngbf4fe00ad38745d2b2116df099beee8f.pngabf88755424b493da8408877c7230893.png868c187782a24661b75bab8fc47bdfef.pngf27642e43ff1457b8d633ba16823fa29.png
Responds after trying to stop on a breakpoint:
ca36d651b0bb4a21a71968c79bda43e5.png
Explain to me, idiot, what did I do wrong here? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alex Me, 2016-06-10
@iamjack

I have not come across this error, but I will try to help.
What if you set xdebug.remote_autostart=1 to autostart debugging when connection listening is enabled?
And just in case, here's how you turn on listening in the picture below, right?
BhiCxoD.png

K
Kirill Arutyunov, 2016-06-11
@arutyunov

Try unchecking use pathmappings in the last screenshot.
I had such a problem on the open server, but I don’t remember how I overcame it already.

S
Sergey Novikov, 2016-06-12
@BOOMER_74

You have disabled autostart, while it is indicated
PhpStorm needs this key for debugging. Read here , pay attention to points 4 , 5 and 6.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question