[xdebug-general] Re: Enabling profiler from the command line

From: Derick Rethans <derick[@]xdebug.org>
Date: Fri, 15 Sep 2006 10:24:50 -0400 (EDT)

On Fri, 15 Sep 2006, Rob Young wrote:

> Is there a way I can enable the profiler when running programs from the
> command line? I would like to be able to switch it on and off in much the same
> way as you can with the GET/POST parameter. At the moment I am using the -c
> option and passing in a different php.ini which has profiling enabled.

You can with:
$ XDEBUG_CONFIG="profiler_enable=1" php yourscript.php
(Ie, use the XDEBUG_CONFIG environment variable)

However, there was a typo in the code so you should get the latest
version from CVS.

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Fri Sep 15 2006 - 16:24:57 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST