[xdebug-general] Re: How can I configure xdebug to work only on one virtual server ?

From: Derick Rethans <derick[@]xdebug.org>
Date: Wed, 5 Jan 2005 16:46:19 +0100 (CET)

On Wed, 5 Jan 2005, David Sklar wrote:

> > You can't do that with any Zend extension, unless you run two seperate
> > copies of apache on your machine. But why would you want to use Xdebug
> > for only some vhosts?
>
> This is, perhaps, a rare case, but I run in to this when doing training
> presentations. I have a few vhosts on running under Apache on my laptop.
> Most are for various development projects (where I want xdebug on), one
> is the vhost that a modified version of pres2 is running on -- this
> vhost holds my training presentations. I want xdebug *off* on this one
> so that beginning students don't get confused by things like xdebug's
> var_dump() automatically entity-encoding special HTML characters.

You can disable the error handler with:
xdebug.default_enable=0

> It's easy enough to fix in other ways (use multiple apache daemons, or
> just change the config and restart apache before and after training
> presentations), but it's a situation where enabling/disabling xdebug on
> a per-vhost basis would be helpful.

Totally disabling is not really going to work, some of the hooks are
just there when it's loaded, but you can make sure that it doesn't add
too much overbead by disabling the error handler like above, and also
disable tracing and profiling for each vhost.

regards,
Derick

-- 
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
Received on Wed Jan 05 2005 - 16:46:22 GMT

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