-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Don't trim strings in the VarDumper dumps of the profiler #20669
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Indeed. Commenting out this line fixes it, but not sure about how it could be for the profiler only :/ |
These are CSS ellipses indeed, and personally I find it more convenient to have them than having long lines that spans on several lines and make it hard to read the important info, which is the class name, not its namespace... |
Can we maybe readd the previous behaviour of class names in the profiler? (showing only the class name, with the FQCN as title) |
Note that the fqcn is still the title, and that it is also copy-pasteable. |
When redesigning the profiler for Symfony 2.8 I also thought about displaying some information in a compact way (e.g. the logger panel). However, I think this is wrong. The profiler is where you go when something is wrong, so you need all information at once. We don't need to make information compact and it doesn't matter if a log line spans 4 or 5 rows. Of course we can apply "intelligent design" to make important parts stand out, like the class/method names, and to fade others, like the namespace. |
…s (nicolas-grekas) This PR was merged into the 3.2 branch. Discussion ---------- [VarDumper] Use default color for ellipsed namespaces/paths | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #20669 | License | MIT | Doc PR | - Eases readability by helping the eye to focus more quickly on the class name and less on its namespace. And let' disable ellipses on the profiler panels, fixing #20669 meanwhile.  Commits ------- ebc23cf [VarDumper] Use default color for ellipsed namespaces/paths
Does #20679 closes this one or is there anything else to do? |
Done |
…es/paths (nicolas-grekas) This PR was merged into the 3.2 branch. Discussion ---------- [VarDumper] Use default color for ellipsed namespaces/paths | Q | A | ------------- | --- | Branch? | 3.2 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | symfony#20669 | License | MIT | Doc PR | - Eases readability by helping the eye to focus more quickly on the class name and less on its namespace. And let' disable ellipses on the profiler panels, fixing symfony#20669 meanwhile.  Commits ------- ebc23cf [VarDumper] Use default color for ellipsed namespaces/paths
Although I love the use of VarDumper in the 3.2 RC2 profiler, we should tweak it a bit to hurt its DX. Specifically, we should never trim strings:
After #20380 I though this was fixed. Should we make this change in other places? Is something wrong on my side?
The text was updated successfully, but these errors were encountered: