PHPStorm 9 + XAMPP + xdebug,调试器不工作

PHPStorm 9 + XAMPP + xdebug, debugger not working

尽管按照所有教程一步步进行,但断点和 php 调试不起作用。

这是我的设置:

PHPStorm 9.0.2,服务器到位'C:/Users/hedge/Dev/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 支持 (Chrome):

在phpstorm 当我在运行'web server debug validate'在phpstorm:

我已经尝试将 xdebug.remote_host 设置为 'local.gpstudios',仍然没有帮助。

我运行 php在调试模式下风暴并启用'listen for php debug connections' 'C:\Dev\XAMPP\tmp\xdebug.log' 永远不会被创建。

如果我将行 'xdebug.remote_autostart = 1' 添加到 php.ini,php 调试工作!!!但是当我使用 phpmyadmin 时它 运行s 太慢了我不想考虑使用这个解决方法。 我已经尝试了所有方法,查看了大量类似的 Whosebug 问题。没有什么。翻转。有效。

请帮忙,我知道有一个快速的解决方法,但它确实使 phpmyadmin 非常慢。我不应该设置 remote_autostart... 真的把我的头发扯掉了。

如果没有 xdebug.remote_autostart = 1 选项,您必须为每个域启用 xdebug。您可以通过向要调试的站点添加新书签来执行此操作。

作为辅助工具,我可以推荐以下内容: