在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
1.首先下载相应的php_xdebug.dll,下载地址: http://www.xdebug.org/download.php 2.将下载文件复制到你的php下的ext目录里。 3.编辑php.ini文件,加入下面信息: [Xdebug] zend_extension=php_xdebug.dll 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_mode = "req" xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.remote_port = 9000 xdebug.idekey="PHPSTORM" xdebug.remote_autostart = no xdebug.trace_output_dir="../Projects/xdebug" xdebug.profiler_output_dir="../Projects/xdebug" xdebug.idekey="PHPSTORM"
后面的目录“../Projects/xdebug”为你想要放置Xdebug输出的数据文件的目录,可自由设置。 参数参考设置:
xdebug.default_enable=on ;显示默认的错误信息 xdebug.auto_trace=on ;自动打开“监测函数调用过程”的功模。该功能可以在你指定的目录中将函数调用的监测信息以文件的形式输出。此配置项的默认值为off。 xdebug.collect_params=on ;打开收集“函数参数”的功能。将函数调用的参数值列入函数过程调用的监测信息中。此配置项的默认值为off。 xdebug.collect_return=on ;打开收集“函数返回值”的功能。将函数的返回值列入函数过程调用的监测信息中。此配置项的默认值为off。 xdebug.max_nesting_level=100 xdebug.profiler_enable=on ;打开效能监测器。 xdebug.remote_enable=on ;是否调试 xdebug.remote_host=localhost xdebug.remote_port=9000 ;调试端口 xdebug.remote_handler=dbgp ;选择协议 xdebug.trace_output_dir="d:\Temp" ;设定函数调用监测信息的输出文件的路径。 xdebug.profiler_output_dir="d:\Temp" ;设定效能监测信息输出文件的路径。
至此,安装完成,可以通过<?php phpinfo();?>查看:
|
2022-11-06
2022-08-17
2022-07-18
2022-08-17
2022-07-29
请发表评论