Dump every line dev need

v0.2.0-beta0 2024-07-10 03:53 UTC

README

Dump your current line of code, for make sure your on right tract.

Installation

composer require sonypradana/here --dev

How to Use

Put here() anywhere in your code

...
    here()->dump();
...

Avilable API

  • here(), register dump log.
  • here()->dump(), dump current line.
  • here()->dumpAll(), dump all registered.
  • here()->count(), count how many execution by group name.
  • here()->countAll(), count all group.

Other

  • here()->dumpIf(), dump the current line if a condition is true.
  • here()->info(), dump the current line without code snapshot.
  • track(), print debug backtrace information.
  • work(), a short hand for here()->dump().

Todo

  • Implement socket reporting.
  • Implement socket reporting with a browser view.
  • here()->count() Implement here()->count() with grouping by filename.