Skip to content

Debugging tools: Symfony VarDumper and Chrome Logger in one package

License

Notifications You must be signed in to change notification settings

idealogica/debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debugging tools: Symfony VarDumper and Chrome Logger in one package

Installation

composer require idealogica/debug:~1.1.0

How to use?

There are few global functions provided by this package that can be used for any kind of debugging:

dump()

Dumps given arguments using symfony/var-dumper.

dd(), _dump()

Dumps given arguments using symfony/var-dumper and stops execution.

trace()

Prints backtrace in HTML or CLI mode.

var_dump()

Build-in PHP function.

var_dd(), _var_dump()

Dumps given arguments using var_dump (build-in PHP function) and stops execution.

var_trace()

Prints backtrace.

js_dump()

Dumps given arguments using Javascript (console::log).

js_dd(), _js_dump()

Dumps given arguments using Javascript (console::log) and stops execution.

js_trace()

Sends backtrace using Javascript (console::log).

cl_dump()

Dumps given arguments using Chrome Logger.

cl_dd(), _cl_dump()

Dumps given arguments using Chrome Logger and stops execution.

cl_trace()

Sends backtrace using Chrome Logger.

profile()

Calculates code execution time. Call it twice to get time in seconds between these calls.

License

Licensed under a MIT License.

About

Debugging tools: Symfony VarDumper and Chrome Logger in one package

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages