This is more of a request for info than it is an actual bug report but I'm just curious about dpm() for Drupal 8x: realizing that it's still likely in development for D8, is the new approach for it to avoid the collapsible display it once had back in D7? I.e. - when you'd use dpm($somevariable), the results would be expandable whereby dvm() would not.

Has this changed for D8 now or is it just something that hasn't yet been added?

If it's no longer added, I personally think it should be reconsidered. The results that dpm() displays are almost always large and lengthy, so having it default to a collapsed state is visually beneficial but dvm() should probably stay how it is as it's essentially nothing more than a var_dump() and is expected to simply dump everything as-is.

Comments

Wolf_22 created an issue. See original summary.

Derimagia’s picture

For D8 all of devel debug functions were moved to be more pluggable. In d8 krumo isn't used but instead a debug library called kint is used.. Any differences in in that.

However to your concern, I'm not sure I understand because by default the output is collapsed

Wolf_22’s picture

Hi, Derimagia. Thanks for the follow up.

At the time of posting this, I wasn't aware of ksm(). That's great, however, one thing I've noticed is that double-clicking on the main collapsed heading in ksm() output no longer displays the logical variable "path" like it did back in dpm().

It's a headache needing to type out all of the structure when dpm() allowed you to copy the structure when double-clicking on one of the main collapsed headings.

Is there any way we can get that back for ksm()?

(Let me know if this isn't making sense and I'll try to explain it a different way--it's hard to explain things like this without a means of showing it instead.)

Derimagia’s picture

For why you need to use ksm instead of dpm, check your devel settings to make sure kint is selected as the dumper.

https://github.com/raveren/kint/issues/175 for your other issue, aka it's a planned feature.

Derimagia’s picture

Wolf_22’s picture

That's great to learn that it's a planned feature. It's just too handy not to have! :)

Thanks for the links, too. I'll check those out.

Wolf_22’s picture

Status: Active » Closed (works as designed)