osdir.com
mailing list archive F.A.Q. -since 2001!



Subject: Difficulties to get xdebug to work on SuSE 10.2 -
PHP5.2 - Apache 2 - msg#00015

List: php.xdebug.general

Mail Archive Navigation:
by Date: Prev Next Date Index by Thread: Prev Next Thread Index

Hello,

I cannot get xdebug to work (i.e. display output like in the screenshots
page) All I get to see ist the standard error message, but no traces. ;-(
I was deeply confused by several php.ini files under /etc/php5/something,
but figured out that I only need the one in the /apache2 directory.
I enabled some error reporting there (error_reporting = E_ALL,
display_errors = On, track_errors = On)
I also added some old lines from my old php.ini (php4)
xdebug.remote=On, xdebug.remote_handler = gbd, xdebug.remote_mode= On,
xdebug.remote_enable=On
(I do not know whether I realy need the latter ones...)

I am using:
- SuSE 10.2 with
- Apache 2.2.3
- PHP 5.2.0


I do not realy understand the connection between the apache module and
particulary the debug-client irritates me; I think I just need the module
which is shown loaded in phpinfo().

Are there any hints what do to to get the thing back working? xdebug was
quite helpful and worked nice on my old install with php....


Thanks a lot,

Jürgen








Thread at a glance:

Previous Message by Date:

Re: Xdebug, Komodo, and Apache 2.2.3

Derick, I downloaded and installed the php_xdebug.dll from xdebug.org http://www.xdebug.org/link.php?url=xdebug200rc1-520-win To my amazement, it works great!!! Stepping through the same code as before, I get no apache memory errors. I can also expand my multi-dim arrays without any problems. I'm very pleased right now. I ain't going to change a thing! So does your site have the latest dll? I did not use the snapshot version. Alex >

Next Message by Date:

Re: Difficulties to get xdebug to work on SuSE 10.2 - PHP5.2 - Apache 2

On Fri, 22 Dec 2006, Braukmann, Juergen wrote: > I cannot get xdebug to work (i.e. display output like in the screenshots > page) All I get to see ist the standard error message, but no traces. ;-( > I was deeply confused by several php.ini files under /etc/php5/something, > but figured out that I only need the one in the /apache2 directory. > I enabled some error reporting there (error_reporting = E_ALL, > display_errors = On, track_errors = On) > I also added some old lines from my old php.ini (php4) > xdebug.remote=On, xdebug.remote_handler = gbd, xdebug.remote_mode= On, > xdebug.remote_enable=On > (I do not know whether I realy need the latter ones...) > > I am using: > - SuSE 10.2 with > - Apache 2.2.3 > - PHP 5.2.0 > > > I do not realy understand the connection between the apache module and > particulary the debug-client irritates me; I think I just need the module > which is shown loaded in phpinfo(). Yes, it needs to show up in two places: 1. next to the Zend logo in the first block 2. as a normal extension block named "xdebug" > Are there any hints what do to to get the thing back working? xdebug > was quite helpful and worked nice on my old install with php.... There are a couple of things that you can check: 1. is your PHP compiled with --enable-versioning (see configure line in phpinfo() output)? yes => recompile PHP without this setting, as it generates many issues 2a. is your PHP compiled in ZTS mode? (See the "Thread Safety" value in phpinfo())? 2b. is your PHP compiled in debug mode? (See the "Debug Build" value in phpinfo())? The basic name for the setting to load Xdebug is "zend_extension". If you are in Debug mode add "_debug" to that name. If you are in ZTS mode add "_ts" to that name. (in this order) 3. Did you specify the full path to the xdebug .so file when loading it in php.ini? An example could be "zend_extension=/dat/dev/php/xdebug/modules/xdebug.so" If possible, please provide a link to your phpinfo() online. regards, Derick

Previous Message by Thread:

Xdebug, Komodo, and Apache 2.2.3

I'm using Windows XP, komodo 3.5.3 and 4 b3, Apache 2.2.3, PHP 5.2, Xdebug 2.0 rc2. There have been a few times that I'll be stepping through code about 4 or 5 files deep. Then the Apache process will exit with the following in the log: Parent: child process exited with status 3221225477 -- Restarting. I also get a message from Windows XP indicating a memory error. It doesn't matter whether I step into or step through the code that I think is causing the problem, apache still exits. What I would like to know is if there is anything that I can do to find the possible cause of these apache memory errors. Could it be that Komodo is causing this? alex

Next Message by Thread:

Re: Difficulties to get xdebug to work on SuSE 10.2 - PHP5.2 - Apache 2

On Fri, 22 Dec 2006, Braukmann, Juergen wrote: > I cannot get xdebug to work (i.e. display output like in the screenshots > page) All I get to see ist the standard error message, but no traces. ;-( > I was deeply confused by several php.ini files under /etc/php5/something, > but figured out that I only need the one in the /apache2 directory. > I enabled some error reporting there (error_reporting = E_ALL, > display_errors = On, track_errors = On) > I also added some old lines from my old php.ini (php4) > xdebug.remote=On, xdebug.remote_handler = gbd, xdebug.remote_mode= On, > xdebug.remote_enable=On > (I do not know whether I realy need the latter ones...) > > I am using: > - SuSE 10.2 with > - Apache 2.2.3 > - PHP 5.2.0 > > > I do not realy understand the connection between the apache module and > particulary the debug-client irritates me; I think I just need the module > which is shown loaded in phpinfo(). Yes, it needs to show up in two places: 1. next to the Zend logo in the first block 2. as a normal extension block named "xdebug" > Are there any hints what do to to get the thing back working? xdebug > was quite helpful and worked nice on my old install with php.... There are a couple of things that you can check: 1. is your PHP compiled with --enable-versioning (see configure line in phpinfo() output)? yes => recompile PHP without this setting, as it generates many issues 2a. is your PHP compiled in ZTS mode? (See the "Thread Safety" value in phpinfo())? 2b. is your PHP compiled in debug mode? (See the "Debug Build" value in phpinfo())? The basic name for the setting to load Xdebug is "zend_extension". If you are in Debug mode add "_debug" to that name. If you are in ZTS mode add "_ts" to that name. (in this order) 3. Did you specify the full path to the xdebug .so file when loading it in php.ini? An example could be "zend_extension=/dat/dev/php/xdebug/modules/xdebug.so" If possible, please provide a link to your phpinfo() online. regards, Derick
blog comments powered by Disqus

Home | News | Sitemap | FAQ | advertise | OSDir is an Inevitable website. GBiz is too!