Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[VarDumper][HttpKernel] Add context to all dumps#28395
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
2807858 to2f49e78Compare| $name =$file; | ||
| } | ||
| $this->line =$this->style('meta',$name,$attr).' on line'.$this->style('meta',$line).':'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
In this scenario, we are 100% sure that the dumper is an instance ofCliDumper so those methods are safe to use.
nicolas-grekas commentedSep 8, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I'd prefer not doing this change personally: when debugging, it's already hard enough to figure out what's going on, I'd prefer not having to visually parse extra output... |
fancyweb commentedSep 8, 2018
nicolas-grekas commentedSep 9, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
The location of the dump is already printed in the dump-server and when the toolbar is used, isn't it? |
fancyweb commentedSep 9, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
When you only use the When you use the For the cli dumps, I can understand and agree with the loop example. However, currently, when you use the dump server, 7 lines and displayed before each dump. Example with a loop : |
fabpot commentedOct 10, 2018
@nicolas-grekas Any more inputs here? |
nicolas-grekas commentedOct 10, 2018
Sure, I'm 👎 |
fabpot commentedOct 10, 2018
Let's close then. |



Following some discussion in#28317, I think it would be nice if the default
VarDumperhandler would add where thedumpcalls comes from. This is the case when theDebugBundleis enabled on html dumps. The behavior I added is exactly the same.I also added it for cli dumps, but for those one I think it's actually better to display the file path instead of just the class name as sometimes you have multiple classes with the same name. This is not a problem for html dumps since there is a title attribute on the span or on the link.