尽管遵循所有的教程一步一步,断点和PHP调试不起作用。PHPStorm 9 + XAMPP + xdebug,调试器不工作
我的继承人设立:
PHPStorm 9.0.2,服务器代替 'C:/用户/对冲/开发/ PHPStorm/gpstudios/DIST'
XAMPP与Xdebug的2.3.3-5.6- VC11
的php.ini:
[XDebug]
zend_extension = "C:\Dev\XAMPP\php\ext\php_xdebug-2.3.3-5.6-vc11.dll"
xdebug.remote_enable = 1
xdebug.remote_host = 127.0.0.1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9000
xdebug.idekey = "PHPSTORM"
xdebug.profiler_enable = 1
xdebug.remote_log = "C:\Dev\XAMPP\tmp\xdebug.log"
的httpd-vhosts.conf:
<VirtualHost *:80>
DocumentRoot "C:/Users/hedge/Dev/PHPStorm/gpstudios/dist"
ServerName local.gpstudios
<Directory "C:/Users/hedge/Dev/PHPStorm/gpstudios/dist">
Header set Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
个
主机:
127.0.0.1 local.gpstudios
Jetbrains的IDE支持(铬):
在phpstorm当我运行在phpstorm的Web服务器调试验证“:
我试过将xdebug.remote_host设置为'local.gpstudios' ,仍然没有帮助。
我在调试模式下运行phpstorm并启用'侦听php调试连接' 'C:\ Dev \ XAMPP \ tmp \ xdebug.log'永远不会被创建。
如果我在php.ini中添加'xdebug.remote_autostart = 1'这一行,php的调试工作!但是当我使用phpmyadmin时,它运行得非常慢,我不想考虑使用这种解决方法。 我试过所有的东西,看着类似的stackoverflow问题的负载。没有。翻转。作品。
请帮忙,我知道有一个快速的解决方法,但它确实使phpmyadmin非常缓慢。我不应该设置remote_autostart ......真的把我的头发撕掉了。
小书签和Chrome扩展工作......但不应该JetBrains的IDE支持插件自动做到这一点,当我在phpstorm调试呢?大多数教程不再提及书签,我认为这是一种过时的方法。我相信还有另一种方式。 – hedgehog90
该扩展名表示它用于调试HTML/CSS/Javascript。此外,它还可以与其他IDE一起使用,如PyCharm和Rubymine。我不认为它具体与PHP有任何关系。 –
好的。所以我再看看教程,它确实提到了上面的Chrome插件。尽管如此,这些文件仍然是垃圾。 – hedgehog90