views:

112

answers:

2

I'm developing a module in PHP for Prestashop and I'm having a tough time trying to debug code. Whenever something falls over it doesn't display errors, just a blank page - either on the front end where the module is hooked, or on the back end module page.

I'm trying to write in another class, or another function but it doesn't like it at all.

It's on a local dev server, PHP errors are on etc.

Can somebody tell me any other way to debug stuff instead of commenting out code? Or some way of getting error codes?

Thanks for your help in advance.

+1  A: 

Try opening config/config.inc.php and then change:

@ini_set('display_errors', 'off')

to

@ini_set('display_errors', 'on').

davgothic
Awesome! Thanks very much
Harry M
A: 

Hello, if you want to display the console debugging Smarty, you can use this module: http://www.coeos.pro/boutique/modules-prestashop/43-debug.html It displays the console only on IP recorded and then allowing persons not of the site administrators to consult the variables

Site internet Nancy