我已经在我的 PC(使用 Windows 10)上安装了 Apache 2.4 和 PHP 5.6。
启用 Xdebug 后,PHP 的运行速度比没有 Xdebug 时慢 10 倍(!)。
这是php.ini
配置:
zend_extension = "php_xdebug-2.3.3-5.6-vc11-x86_64.dll"
xdebug.remote_autostart = 0
xdebug.profiler_enable = 0
xdebug.profiler_output_dir = "C:\PHP\tmp"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_mode=req
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port=9000
xdebug.idekey=netbeans-xdebug
xdebug.trace_output_dir = "C:\PHP\tmp"
xdebug.auto_trace = 0
xdebug.var_display_max_depth = 3
xdebug.remote_connect_back = 0
我已确保禁用探查器和自动启动。有谁知道这种行为的原因是什么?