Git Product home page Git Product logo

xdebug-trace-gui's Introduction

XDebug Trace GUI

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.

Installing XDebug

  • Install it typing pecl install xdebug
  • chown www-data /var/log/php
  • Put xdebug.ini in /etc/php5/conf.d
  • service apache2 restart

Apache Configuration

If the ini_set doesn'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'
    php_value short_open_tag 1
</Directory>

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

Change the directory and the IP range to match your setup.

Trace GUI usage

There are 3 main files:

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

Old style trace gui all one page, with summaries.

graph.php

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

The code was written pretty quickly and isn't great. Next time it'll be better ;-).

xdebug-trace-gui's People

Contributors

beberlei avatar corretge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

xdebug-trace-gui's Issues

Typical

  1. Promises a GUI.
  2. Provides no f#$%ing binary. ๐Ÿ™„๏ธ€

Incompatibility with old versions of PHP from 5.2.17 (inclusively).

Hello Alex,
Your fork it is great extension for the initial code and I use just it with pleasure. But I've faced with 5.2.17 PHP incompatibility when I tried to trace some big project which was written with an old PHP version. I thought that debugging tools have to have maximum of compatibility, because we do not know how ancient their bugs will be. :)
Do you agree with me? :)

If you want, you can see how I worked around the issue here jackka@9820700. But it just quick fix and this variant would be nicer if the anonymous functions will be rewritten in old style like functions which have names and without closure. If I'll have time, I do it myself. But unfortunately I'm not sure.

Thanks in advance.

P.S.
Addition info.
Error messages were the following:
"Parse error: syntax error, unexpected T_FUNCTION in C:\apache\Apache2\htdocs\xdebug-trace-gui\noutrace.class.php on line 77"
and then:
"Parse error: syntax error, unexpected T_FUNCTION in C:\apache\Apache2\htdocs\xdebug-trace-gui\trace.config.php on line 34"

Links with explanations where I've got an info for my quick fix:

  1. Suggestion how to increase compatibility with create_function using: http://stackoverflow.com/questions/4949573/parse-error-syntax-error-unexpected-t-function-line-10-help
  2. Short example how to use create_function:
    http://stackoverflow.com/questions/13362606/parse-error-syntax-error-unexpected-t-function-in

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.