Coder Social home page Coder Social logo

pdbg's Introduction

PDBG - Php Debugger

Auhtor:Tomas Macik
Contact: [email protected]

Returns singleton instance of pdbg class.

Append a message from msg to log buffer with timestamp prefix.

Appends a check point message to log buffer. Description of check point will be added if present in desc.

Append an exported variable to log buffer. var_export fce is used to get the exported content of variable. Description of dump will be added if present in desc.

Same as dump, but with syntax highlight in html. Improves readability in browsers but it worsen it in console output.

As How Do I Get Here, prints a formatted backtrace to actual position including function itself. It does not dump the objects, only arguments of each function in trace.

Pdbg can provide multiple benchmarks. Bench marks have their own buffer, so by ending the last started benchmark will be ended. Benchmarsk are messaured in microsecond precission.

Starts a new bechmark and mark it to log buffer with description (default='-').

Ends the last started benchmark and mark it to log buffer with message containing the duration of the benchmark in miliseconds units.

Stops outputbuffer if present. Flushes the content of log buffer to stdout without any surrounding tags and dies. This is good for console debugging.

Same as flush(), but it uses htmlentities and <pre> tags to format output, so it would be more readable in html output.

Flushes the content of log buffer to file pdbg.log without any formatting. If append is true, the content will be appended to the file. Otherwise the file will be overwritten with new content.

pdbg's People

Contributors

macino avatar

Watchers

 avatar James Cloos avatar

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.