Closed (works as designed)
Project:
Devel Kint Extras
Version:
1.1.0
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
18 Jan 2023 at 16:56 UTC
Updated:
20 Oct 2023 at 13:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
lissy commentedNow 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;
}
Comment #3
ressaYes, 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
The "Kint Extended" option missing in Drupal 10
Comment #4
lissy commentedHi 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.
Comment #5
ressaThanks 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 ...
Comment #6
ressaComment #7
lissy commentedHi 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 ----
Comment #8
ressaThanks 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.
Comment #9
jnicola commentedWe are also missing this option in Drupal 9.5.9 with PHP 8.1
Comment #10
lissy commented@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.
Comment #11
jnicola commentedSo 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.
Comment #12
lissy commented@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
Comment #13
aangel commentedThis 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.
Comment #14
jnicola commentedAh 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.
Comment #15
dieterholvoet commented