在XAMPP中启用XDebug会降低phpmyadmin的速度

use*_*525 9 xampp xdebug phpmyadmin

每当我启用xdebug以使用以下标准设置调试我的php-projects时,它会在每个动作上减慢phpmyadmin的速度.刚开启phpmyadmin需要将近10秒钟.

zend_extension = "C:\xampp\php\ext\php_xdebug.dll"
xdebug.profiler_append = 0
xdebug.profiler_enable = 1
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir = "C:\xampp\tmp"
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.remote_enable = on
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.trace_output_dir = "C:\xampp\tmp"
xdebug.remote_port = 9000
Run Code Online (Sandbox Code Playgroud)

编辑:试验和错误...这解决了问题

xdebug.remote_host = localhost
Run Code Online (Sandbox Code Playgroud)

小智 3

如果 xdebug.remote_autostart 已启用,请使用以下命令禁用它

xdebug.remote_autostart = 0
Run Code Online (Sandbox Code Playgroud)

为我成功了。

  • 如果您需要调试 PHP 代码(使用 XDebug),如何启动它(无需重新编辑 php.ini 文件)? (2认同)