how to show database detail error

942 Views Asked by At

How can I see database query error in cscart? I set debug mode in config.php and debug mode for smarty in admin panel, but it always show non-sense error "An error occurred". It is very difficult to debug the developing addons.

Thanks.

2

There are 2 best solutions below

0
On BEST ANSWER

I found it. add

define('DEBUG_QUERIES',true);

in config.local.php file :)

0
On

You can also see errors into the logs, but you need to enable logs for database


Valentin