Xdebug - "jit "不能与PhpStorm一起使用。

问题描述 投票:0回答:1

按照官方文档,我想在 "jit "模式下运行Xdebug。但是没有成功。当我在我的php.ini文件中添加配置后,一切都能正常工作,但是每次请求(即使PhpStorm中的Xdebug监听器关闭)都需要很长时间(当php.ini中的Xdebug关闭时,5s到0.5s)。

所以我想让它在 "jit "模式或 "on demand "模式下运行,但都不行。

我使用的是Windows 8.1和XAMPP。

这是我的配置。

enter image description hereenter image description here

php phpstorm xdebug
1个回答
0
投票

我在WAMPServer & Netbeans中的最低配置为

xdebug.remote_enable = on
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000

我看你是为CLI配置的,所以检查一下你的 php.ini 文件是CLI使用的文件。

您可以在命令行中进行如下检查

>php --ini

然后检查 Loaded Configuration File 确保你编辑了正确的文件

更新

你还必须取消注释,删除前面的 ;,来自 zend_extension

zend_extension="c:/xampp/php/ext/php_xdebug-2.9.5-7.4-vc15-x86_64.dll"
© www.soinside.com 2019 - 2024. All rights reserved.