Please sign in to comment.
feature #25125 [VarDumper] New env var to select the dump format (dun…
…glas) This PR was squashed before being merged into the 4.2-dev branch (closes #25125). Discussion ---------- [VarDumper] New env var to select the dump format | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | todo This PR introduces a new environment variable that can be used to force `dump()` to generate HTML even in CLI, or CLI even in a web context. It allows to dump large objects when debugging a command, to open the resulting HTML in a browser, and to benefit of the nice JS UI (folded by default, search engine...). Example usage: VAR_DUMPER_FORMAT=html vendor/bin/behat > tmp.html; open -a firefox tmp.html VAR_DUMPER_FORMAT=cli vendor/bin/behat > tmp.txt Commits ------- 536125a [VarDumper] New env var to select the dump format
- Loading branch information...
Showing with 24 additions and 8 deletions.