![]() ![]() Set the maxlevels to prevent out-of-memory. of levels of information shown by Kint. Step 1 of 1 Using a text editor like Pspad or notepad, open up your file and paste in the following snippet at the bottom of the file. If debugging is very slow or leads to WSOD reduce the number Introduction This is a very simple snippet I use to display all the Drupal variables available to a page when Im testing/debugging a site. ![]() Your file should have something like this in the end: // Include Kint class. If the radio button is not visible, try clearing the caches and refreshing the page. To install Devel using Composer: composer require drupal/develĪfter installing Kint, the "Kint" radio button should be available under "Variables Dumper" in the "Devel Settings" page. The way devel is build looks like it works without kint, but if you want to take full advangtage of the devel - kint combination while developing you should run an extra composer require command too. If you have Kint module enabled (it was removed in 4.0. It is the recommended release for Drupal 9 and 10. A suite of modules containing helpful tools for module developers and themers. Drupal ( / drupl /) 5 is a free and open-source web content management system (CMS) written in PHP and distributed under the GNU General Public License. What is not clear when you start developing with drupal 8-9 and using the devel module is that you need the kint vendor php package too. PHP 8 compatibility Drupal 9.1 compatibility for webprofiler. You can do this by truncating the cache menu table or by clicking the Rebuild menus link that the Drupal development module (devel.module) provides or by. Clone and push code at drupalforks/devel. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |