No Option Kint Extended in Drupal 10

Created on 18 January 2023, over 1 year ago
Updated 20 October 2023, 8 months ago

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?

πŸ’¬ Support request
Status

Closed: works as designed

Version

1.1

Component

Miscellaneous

Created by

πŸ‡©πŸ‡ͺGermany Lissy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡©πŸ‡°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() 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

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

  • πŸ‡©πŸ‡°Denmark ressa Copenhagen
  • πŸ‡©πŸ‡ͺ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 8 months ago
  • πŸ‡§πŸ‡ͺBelgium DieterHolvoet Brussels
Production build 0.69.0 2024