0
如何配置XDebug以配置文件全部请求,POST,GET,Ajax,带和不带查询字符串参数?XDebug not profiling POST
当前配置(下文)仅为没有查询字符串参数的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