Dino Geek, try to help you

How to use the development tools on Drupal 8?


Here are the steps to use the development tools on Drupal 8:

1. Install Drupal Console: Drupal Console is a command-line interface tool that helps you generate boilerplate code, manage configuration, and execute common Drupal 8 tasks. You can install Drupal Console using Composer by typing the following command in your terminal: `composer require drupal/console`.

1. Install Devel module: The Devel module provides various tools and functions to assist with Drupal 8 development. To install it, type the following command in your terminal: `composer require drupal/devel`.

1. Enable development mode: To enable development mode, go to the `settings.php` file located in `sites/default` and set the `$config[‘system.performance’][‘css’][‘preprocess’]` and `$config[‘system.performance’][‘js’][‘preprocess’]` settings to `FALSE`. This disables CSS and JavaScript aggregation, making it easier to debug and inspect your code.

1. Use Twig debugging: Drupal 8 uses Twig as its templating engine. To enable Twig debugging, go to the `services.yml` file located in `sites/default` and set the `debug` parameter to `true`. This will display the file name and line number of the Twig template that you are currently viewing.

1. Inspect and debug with browser tools: Use browser tools like Chrome DevTools to inspect and debug your Drupal 8 website. You can inspect HTML, CSS, and JavaScript, view network requests, and troubleshoot issues.

By using these tools, you can streamline Drupal 8 development and improve your site’s performance and functionality.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use