Skip to main content
Drupal 8

Main navigation

  • Home
    • Question And Answer
    • NEWS
    • Projects
  • Tutorials - Drupal
    • Android
    • Other
User account menu
  • Log in

Breadcrumb

  1. Home

Debug

By editor , 24 July, 2017

Install Xdebug with NginX Server

Tags

  • Debug
  • IDE

Install Xdebug php

sudo apt install php-xdebug

Configure Xdebug

Example:
sudo gedit /etc/php/5.6/mods-available/xdebug.ini

By editor , 29 June, 2017

Drupal coding Standard and Best Practice

Tags

  • Drupal 8
  • Code
  • Debug
  • Module


Create a Drupal 8 module is a good idea, but develop as Drupal is BEST.

The famous tools PhpCS and PhpCBF allow you to check and correct (some) drupal coding standards and best practice errors.

By editor , 7 December, 2016

SimpleTest : Running PHPUnit tests from command line

Tags

  • Drupal 8
  • Code
  • Debug
  • Testing

Initialisation - Create link to the script (Optional).

ln -s core/scripts/run-tests.sh ~/bin

Run Test and open rest in web browser.

php core/scripts/run-tests.sh --browser --class "Drupal\YOUR_MODULE\Tests\JustTest"

By editor , 24 January, 2016

XDebug - Install and configure with NetBeans

Tags

  • Server
  • Debug

Step 1. Install Xdebug
If not already ainstalled, Install Xdebug (I'ts already on the package WAML, LAMP, MAMP)
In Linux Debian/Ubuntu/Mint
# sudo apt-get install php5-xdebug

By editor , 18 January, 2016

Debug and Display errors. PHP Apache Mysql Xdebug

Tags

  • Server
  • Shell
  • Debug

Step 1.
Check apache error log (use tail to show in real time)
# tail -f /var/log/apache2/error.log

Step 2 : 
Check MySQL database connection using mysql -uusername -ppassword

 

Debug

Links

  • Drupal.org
  • Drupal core release cycle
  • Drupal events with ease
  • Unit test with Drupal using PHPUnit (Drupal 10)
  • Tokens for file upload url
  • Tips for Docker
  • CKEditor inline image files usage for custom forms.
  • Install Docker on Linux Mint
  • Install PHP 8.1
  • Drupal Security Best Practices
  • Order and sort items with tabledrag
  • Add a custom service YAML container
  • Apply a patch with composer