【发布时间】:2015-11-30 17:31:23
【问题描述】:
尽管按照所有教程一步一步进行,但断点和php调试不起作用。
这是我的设置:
PHPStorm 9.0.2,服务器就地 'C:/Users/hedge/Dev/PHPStorm/gpstudios/dist'
带有 xdebug 2.3.3-5.6-vc11 的 XAMPP
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',仍然没有帮助。
我在调试模式下运行 phpstorm 并启用“监听 php 调试连接” 'C:\Dev\XAMPP\tmp\xdebug.log' 永远不会被创建。
如果我在 php.ini 中添加“xdebug.remote_autostart = 1”行,php 调试就可以了!!!但是当我使用 phpmyadmin 时,它运行得非常慢,我不想考虑使用这种解决方法。 我什么都试过了,看了很多类似的stackoverflow问题。没有。翻转。有效。
请帮忙,我知道有一个快速的解决方法,但它确实让 phpmyadmin 非常慢。我不应该设置 remote_autostart ......真的把我的头发扯掉了。
【问题讨论】:
-
检查我关于调试启用的答案stackoverflow.com/a/70778833/9277453