In a fresh Drupal 10 installation i tried different combinations with composer like:
Devel 5.1.1, kint-php/kint 4.2 and devel_kint_extras 1.1.0
Devel 5.0.0, kint-php/kint 3.3 and devel_kint_extras 1.1.0

There is no Option Kint Extended and i cant use dpm($var) or dpm($var) with Kint.
With Standard Configuration i can use dsm($var).

Whats going wrong?

Comments

Lissy created an issue. See original summary.

lissy’s picture

Now I realized, that i can see functions and modules with dsm() with this module combination:
Devel 5.0.0, kint-php/kint 3.3 and devel_kint_extras 1.1.0
without the option devel Kint Extras. Doesn't seem to be necessary under drupal 10.
Very important is the depth in settings for kint like this:
if (class_exists('Kint')) {
// Set the max_depth to prevent out-of-memory.
\Kint::$max_depth = 4;
}

ressa’s picture

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() or ksm(), 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() (not dpm() or dsm())
Variables Dumper: Kint + dpm(), dsm(), or ksm()

So there are many roads to Rome :)

Available methods + Static class properties MISSING without Devel Kint Extras

Missing

Available methods + Static class properties PRESENT with Devel Kint Extras

Present

The "Kint Extended" option missing in Drupal 10

The Kint Extended missing in D10

lissy’s picture

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.

ressa’s picture

Thanks for creating this issue @Lissy! If you're using Twig template debugging, it would be awesome if you could check if it works in Drupal 10, without the missing "Kind Extended". I am not sure how to best do that ...

ressa’s picture

lissy’s picture

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?
---- edit: I get the Methods with ksm(), sorry ----

ressa’s picture

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.

jnicola’s picture

We are also missing this option in Drupal 9.5.9 with PHP 8.1

lissy’s picture

@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.

jnicola’s picture

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.

lissy’s picture

@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

aangel’s picture

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.

jnicola’s picture

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.

dieterholvoet’s picture

Status: Active » Closed (works as designed)