Skip to content

macino/pdbg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

PHP debug utility. Helps by in-code debugging.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages