首页 文章

PHPStorm 9 XAMPP xdebug,调试器无法正常工作

提问于
浏览
2

尽管一步一步地遵循所有教程,但断点和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):

enter image description here

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

enter image description here

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

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

如果我将'xdebug.remote_autostart = 1'行添加到php.ini,php调试工作!但是当我使用phpmyadmin它运行得如此之慢时我不想考虑使用这种解决方法 . 我已经尝试了一切,看了很多类似的stackoverflow问题 . 没有 . 翻转 . 作品 .

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

1 回答

相关问题