xdebug + wincachegrind

;;;;;;;php.ini;;;;;;;;;;;;;;;;;;

[Xdebug]
zend_extension=D:Xamppphpextphp_xdebug.dll
;开启自动跟踪
xdebug.auto_trace = On
;开启异常跟踪
xdebug.show_exception_trace = On
;开启远程调试自动启动
xdebug.remote_autostart = On
;开启远程调试
xdebug.remote_enable = On
;收集变量
xdebug.collect_vars = On
;收集返回值
xdebug.collect_return = On
;收集参数
xdebug.collect_params = On

;;phpstorm
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9000
xdebug.idekey = PHPSTORM

;;wincachegrind
xdebug.profiler_enable=On
xdebug.trace_output_dir="D:/wincachegrind"
xdebug.profiler_output_dir="D:/wincachegrind"

----------------------------------------------------------------------------------

xdebug使用简单配置

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM

原文地址:https://www.cnblogs.com/web21/p/6088674.html