- π©π°Denmark ressa Copenhagen
Yes, it looks like "Kind Extended" option under Administration > Configuration > Development > Devel settings, as seen as 4th option on the page https://www.webwash.net/how-to-print-variables-using-devel-and-kint-in-d... is not an option in Drupal 10.
But maybe it's not necessary to enable it? Because after enabling Devel Kint Extras, I get "Available methods" and "Static class properties" shown after "Properties". I can use
dpm()
,dsm()
orksm()
, for the page to render.kint()
doesn't render the page (just variables array) and ends in a "RuntimeException: Failed to start the session ..." error.For example, with these combinations, I can see the "Available methods" and "Static class properties":
Variables Dumper: Default +ksm()
(notdpm()
ordsm()
)
Variables Dumper: Kint +dpm()
,dsm()
, orksm()
So there are many roads to Rome :)
Available methods + Static class properties MISSING without Devel Kint Extras
Available methods + Static class properties PRESENT with Devel Kint Extras
- π©πͺGermany lissy
Hi ressa,
thanks so much.
it seems as i had found my way to rome and You are right, the Option is not realy necessary to debug with function and methods shown. ;-)
I have to do more tests. - π©π°Denmark ressa Copenhagen
Thanks for creating this issue @Lissy! It would be awesome if you could check if Twig template debugging works in Drupal 10 without the missing "Kind Extended", if you're using it. I am not sure how to best do that ...
- π©πͺGermany lissy
Hi ressa,
sorry, i forgot to answer Question in #5.
Yes, i can debug in twig with kint in Drupal 10.
Also without the setting option.But I have problems to debug in php my hook.
I does not get the Available methods + Static class properties.
Any Idea? - π©π°Denmark ressa Copenhagen
Thanks for the update Lissy. I have since not really used it, so I don't have any ideas ... sorry.
I hope you make it work. Have a great day. - πΊπΈUnited States jnicola
We are also missing this option in Drupal 9.5.9 with PHP 8.1
- π©πͺGermany lissy
@jnicola, there ist no special option. You can get the methods with ksm() or kint() if Devel, kint-php/kint 4.2 and devel_kint_extras are installed.
- πΊπΈUnited States jnicola
So I get all of that, but the memory issues do still exist for me, and the radio button choice to choose "kint extended" goes away.
- π©πͺGermany lissy
@jnicola you dont need the radio button choice to choose "kint extended".
My choose devel settings is Symfony var-dumper.Because of memory issues perhaps it is a solution to set $depth_limit in settings.php.
Please choose the right syntax for your version.
https://gist.github.com/JPustkuchen/a5f1eaeb7058856b7ef087b028ffdfeb - πΊπΈUnited States aangel
This is now normal behavior.
The Kint Extended option wasn't working for me either in D10 so I went digging and discovered that the latest version's (1.1.0) CHANGELOG points to this issue:
Override the default kint dumper
https://www.drupal.org/project/devel_kint_extras/issues/3309491 βThere were drawbacks to adding another plugin so the maintainer changed it so that the new functionality overrides the default Kint plugin.
There is code in a new install hook to switch a site from the Kint Extended plugin to the Kint plugin, as well.
Once someone upgrades from Devel Kint Extras 1.0 to 1.1 (on D9 or D10), the Kint Extended option will disappear.
From now on, just select the Kint option.
- πΊπΈUnited States jnicola
Ah okay, gotcha. Unfortunately that change happened but our local config had kint_extended in there still, so it was just defaulting to a standard dumper. Easy enough fix in our case though, just change back to kint, export local config etc etc.
- Status changed to Closed: works as designed
about 1 year ago 1:47pm 20 October 2023