[xdebug-general] Dynamically Loading Xdebug

From: rod <rod[@]pu-gh.com>
Date: Sat, 31 Jul 2010 17:58:56 +0100

Hi,

Is it possible to dynamically load xdebug in a php script? My use
case is I am using phpunit with hudson on some CI jobs, and would like
to have one job generate code coverage statistics nightly. But, if I
load xdebug all the time then this will slow down all the jobs that
don't need it (99% of the other jobs). So, it would be nice if I
could load xdebug only when I need to do code coverage stats.

I've tried using the deprecated dl() function, and also the -d and -z
php flags but has no luck. Now I'm thinking maybe I need to start php
with a seperate ini file for this case.

So, is this possible? Or am I being dumb and there's actually a much
better way to do this?

Cheers,
rod.
Received on Sat Jul 31 2010 - 17:59:02 BST

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