Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.29 KB

README.markdown

File metadata and controls

34 lines (23 loc) · 1.29 KB

Original code from: http://www.rdlt.com/xdebug-trace-file-parser.html

Detects all the traces in your xdebug trace directory and offers to look at them in a nice way.

To enable xdebug:

  • install it typing pecl install xdebug
  • chwon www-data /var/log/php
  • put xdebug.ini at /etc/php5/conf.d
  • service apache2 restart

noutrace.php Xdebug trace gui. With pagination, 1024 sentences in a page. For big traces. Memory and time consumition calculed by difference with previous instruction.

trace.php Xdebug trace gui. Old style, all in a page, with sumaries

graph.php Xdebug trace graph. Statistics memory consumition MB per centesims. You need the parent folder of jpGraph in the include_path.

Advisor: the code was writed quickly. The next time, better ;-)

No trace the tracer! If the ini_set don't run, add this to your Apache VirtualHost file:

  <Directory /srv/www/lab/xdebug-trace-gui>
                Order allow,deny
                allow from 10.10.10
                deny from all
                php_value 'xdebug.auto_trace' 'Off'
        </Directory>

look at the file xdebug.httpd.conf for an Apache VirtualHost sample configuration.

Change the directory and the IP range to your convenience.