(1)https://xdebug.org/download.php 下载当前Xampp对应的XDebug版本。
(2)将该dll放入C:\xampp\php\ext
(3)修改Control Panel php.ini
[XDebug]
zend_extension = "C:\xampp\php\ext\"
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
(4)配置PhpStrom Debug/Run Configuration (没什么特殊)
时间: 2024-10-28 16:35:39