[xdebug-general] Re: verify xdebug is functioning

From: Derick Rethans <derick[@]xdebug.org>
Date: Mon, 9 Oct 2006 19:01:27 +0200 (CEST)

On Sat, 7 Oct 2006, Jeffrey Sabarese wrote:

> hello. thank you for providing help on the xdebug support list!!
> is there some way that i can test whether Xdebug is working? i think
> it's in there-- but... erroneous php, when parsed, would have me
> believe otherwise (i don't see the xdebug colorful output... :(
>
> i installed xdebug on Fedora Core 5 using:
>
> > > # pecl install xdebug
> this process actually went more like:
>
> > > # pear install xdebug-beta
> which resulted in a message-- (i don't recall the full msg) '..package
> pecl/xdebug can be installed with "pecl install xdebug"...'
> which is why i used

Either:

pear install pecl/xdebug-beta
or
pecl install xdebug-beta

should work.

> > > # pear install xdebug-beta
>
> but, now it yeilds the following message:
> '.. PHP Warning: Module 'xdebug' already loaded in Unknown on line 0
> No releases available for package "pear.php.net/xdebug" - package
> pecl/xdebug can be installed with "pecl install xdebug"
> Cannot initialize 'xdebug-beta', invalid or missing package file
> Package "xdebug-beta" is not valid
> install failed..'

If it says that then Xdebug is indeed already loaded.

> is there some way that i can test whether Xdebug is working? some
> sample code maybe? i can't think of anything for sure... (sorry!...
> plus, i thought i have a problem-- hence, why i installed it. ;)
>
> i have looked at phpinfo() , and i see it there-- where its "supposed
> to be"-- which i'm familiar w/ because i've had it installed
> successfully on windows in the past-- and i'm aware of what the output
> looks like from there as well-- colorful, detailed reports upon error.

It's supposed to be in some of the output of phpinfo() , however your
configuration might only enable Xdebug for the CLI (command line
interface). There you can verify whether Xdebug is loaded with:

php -v, it should show something like:

PHP 5.2.0RC5-dev (cli) (built: Oct 3 2006 21:44:52) (DEBUG)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2006 Zend Technologies
    with Xdebug v2.0.0RC1, Copyright (c) 2002, 2003, 2004, 2005, 2006,
by Derick Rethans

regards,
Derick
Received on Mon Oct 09 2006 - 19:01:30 BST

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