I can't get XDebug2 memory tracing woking w/ PHP4 ??!!
Posted: Sat Feb 24, 2007 6:30 am
EDIT | Never mind, make clean && make distclean fixed it 
On my Mac is just compile PHP and Apache from source. I have different version installed to different directories and simply uncomment out the correct PHP module then restart apache. It works.
I installed XDebug-2.0.0RC3 using PECL on my PHP5.2 install and it ll worked beautifully. xdebug_peak_memory_usage() was giving 0 but the trace file contains that info anyway.
Now I've followed the same setup for PHP4.4 and xdebug is working, but all the memory values in the trace output come out as 0. Any clues?
I've done this:
phpinfo() shows that the module is loaded and shows the settings, but I can't get it to give me any values for memory usage
I also tried install 2.0.0RC2 from PECL but it was the same.
On my Mac is just compile PHP and Apache from source. I have different version installed to different directories and simply uncomment out the correct PHP module then restart apache. It works.
I installed XDebug-2.0.0RC3 using PECL on my PHP5.2 install and it ll worked beautifully. xdebug_peak_memory_usage() was giving 0 but the trace file contains that info anyway.
Now I've followed the same setup for PHP4.4 and xdebug is working, but all the memory values in the trace output come out as 0. Any clues?
I've done this:
Code: Select all
#Compile and install PHP
./configure --prefix=/usr/local/php4.4 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--without-mysql \
--with-openssl \
--enable-memory-limit #THIS IS NEEDED
make && make install
#Install xdebug from PECL
/usr/local/php4.4/bin/pecl install xdebug-2.0.0RC3
#Put the following in /usr/local/php4.4/lib/php.ini
zend_extension=/usr/local/php4.4/lib/php/extensions/no-debug-non-zts-20020429/xdebug.so
[debug]
; Remote settings
xdebug.remote_autostart=off
xdebug.remote_enable=on
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
; General
xdebug.auto_trace=off
xdebug.collect_includes=on
xdebug.collect_params=off
xdebug.collect_return=off
xdebug.default_enable=on
xdebug.extended_info=1
xdebug.manual_url=http://www.php.net
xdebug.show_local_vars=0
xdebug.show_mem_delta=0
xdebug.max_nesting_level=100
;xdebug.idekey=
; Trace options
xdebug.trace_format=0
xdebug.trace_output_dir=/tmp
xdebug.trace_options=0
xdebug.trace_output_name=crc32
; Profiling
xdebug.profiler_append=0
xdebug.profiler_enable=1
xdebug.profiler_enable_trigger=0
xdebug.profiler_output_dir=/tmp
xdebug.profiler_output_name=crc32