Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/247.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
断点无法使用WAMP、XDebug在PhpStorm中使用当前调试配置_Php_Intellij Idea_Phpstorm - Fatal编程技术网

断点无法使用WAMP、XDebug在PhpStorm中使用当前调试配置

断点无法使用WAMP、XDebug在PhpStorm中使用当前调试配置,php,intellij-idea,phpstorm,Php,Intellij Idea,Phpstorm,我已经尝试过多次设置,但始终无法使断点正常工作。我还需要做什么才能在Windows 10中工作 我的php.ini文件: [xdebug] zend_extension ="c:/wamp/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11.dll" xdebug.remote_enable = 1 xdebug.remote_port = "889" xdebug.profiler_enable = 1 xdebug.profiler_en

我已经尝试过多次设置,但始终无法使断点正常工作。我还需要做什么才能在Windows 10中工作

我的php.ini文件:

[xdebug]
zend_extension ="c:/wamp/bin/php/php5.6.25/zend_ext/php_xdebug-2.4.1-5.6-vc11.dll"
xdebug.remote_enable = 1
xdebug.remote_port = "889"
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = Off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir ="c:/wamp/tmp"
xdebug.show_local_vars=0
Vhosts配置文件:

# Virtual Hosts
#

<VirtualHost *:80>
    ServerName localhost
    ServerAlias localhost
    DocumentRoot c:/wamp/www
    <Directory  "c:/wamp/www/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

<VirtualHost *:80>
    ServerName skeleton.dev
    ServerAlias skeleton.dev
    DocumentRoot c:/wamp/www/s3
    <Directory  "c:/wamp/www/s3">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>
#
#虚拟主机
#
服务器名本地主机
服务器别名本地主机
DocumentRoot c:/wamp/www
选项+索引+包含+跟随符号链接+多视图
允许超越所有
要求本地
ServerName skeleton.dev
ServerAlias skeleton.dev
DocumentRoot c:/wamp/www/s3
选项+索引+包含+跟随符号链接+多视图
允许超越所有
要求本地
#
PhpStorm中的Web应用程序设置:

PHPInfo中的完整XDebug:


尝试测试断点时,我在PhpStorm中设置了一个断点,然后单击电话图标开始侦听。当我在Chrome中加载包含带有断点的代码的页面时,它什么也不做。

1)请显示通过浏览器捕获的
phpinfo()
输出的整个xdebug部分。2) 我看到您使用的是自定义xdebug端口号(也低于1024)。您是否在PhpStorm设置中设置了相同的端口?3) 请收集此类未成功调试会话的xdebug日志:4)“当我在Chrome中加载包含带有断点的代码的页面时,它不会执行任何操作。”是否使用xdebug浏览器扩展来控制调试会话?如果没有--如何激活/停用它?它正在工作,谢谢!端口不匹配,我没有正确设置验证目录(我不确定该部分是否重要)。然后我安装了插件,它的工作完美。谢谢