To enable the debug module in PrestaShop 1.7 you need to open page: Advanced Parameters ->Performance
And enable feature Debug mode
In PrestaShop 1.6 you need to open file: (your store folder)/config/defines.inc.php and assign true value _PS_MODE_DEV_ variable: