morrislaptop / var-dumper-with-context

Show file and line number when using Symfony VarDumper
https://packagist.org/packages/morrislaptop/var-dumper-with-context
MIT License
16 stars 2 forks source link

Support newer symfony versions #2

Open tyteen4a03 opened 3 years ago

tyteen4a03 commented 3 years ago

Hi, any plans to support Symfony 4/5/6 with this package? :)

adazmy commented 6 months ago

A fast temporary hack for now, when working on projects... is to add a var dump before the real one with:

File: vendor/symfony/var-dumper/Resources/functions/dump.php Add before each dump call a line: VarDumper::dump(debug_backtrace()[0]['file'].':'.debug_backtrace()[0]['line']);