如何配置 XDebug 来分析所有请求、POST、GET、Ajax,有和没有查询字符串参数?
当前配置(如下)仅为没有查询字符串参数的 GET 请求和 POST 请求创建配置文件 (cachegrind.out) 文件。
/etc/php5/apache2/conf.d/20-xdebug.ini
zend_extension = /usr/lib/php5/20121212/xdebug.so
xdebug.profiler_enable_trigger = 1
xdebug.profiler_enable = 0
xdebug.profiler_append = 0
conf.d/my.conf
<Directory "/var/www/html/sub">
# Limit profiling to files in this directory
RewriteEngine On
RewriteRule (.*\.php) $1?XDEBUG_PROFILE=1 [QSA,L]
</Directory>
Ubuntu 14.04.5 LTS
PHP 版本 5.5.9-1ubuntu4.21
XDebug 2.5.1 版