1,下载安装包
安装包地址
2,在php.ini文件中进行如下配置:
;zend_extension="D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\php_xdebug-2.6.0-7.2-vc15-nts-x86_64.dll" zend_extension="D:\phpStudy\PHPTutorial\php\php-7.2.1-nts\php_xdebug-2.6.0-7.2-vc15-nts.dll" xdebug.profiler_output_dir="D:\phpStudy\PHPTutorial\tmp\xdebug" xdebug.trace_output_dir="D:\phpStudy\PHPTutorial\tmp\xdebug" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_name = "cache.out.%t-%s" xdebug.remote_enable = 1 xdebug.remote_handler = "dbgp" xdebug.remote_autostart = 1 xdebug.remote_host = "127.0.0.1" xdebug.remote_port = 9060 xdebug.idekey = phpstorm
3,配置PhpStorm
4,如果使用PhpStudy,请确保勾选xdebug选项
以上就是windows环境配置xdebug的详细内容,更多请关注php中文网其它相关文章!
Windows激活工具是正版认证的激活工具,永久激活,一键解决windows许可证即将过期。可激活win7系统、win8.1系统、win10系统、win11系统。下载后先看完视频激活教程,再进行操作,100%激活成功。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号