Hi,
I think there is a way to check the the loading time and number of requests for each block in a page?
Can any one advise please ..
Hi,
I think there is a way to check the the loading time and number of requests for each block in a page?
Can any one advise please ..
You can either enable debug which will give you a gross look at DB versus PHP performance and combine that withe using your browser inspector to review each request.
Thanks Tony for the reply..
I did the following in the config.php file:
//Uncomment to enable the developer tools: debugger, PHP and SQL loggers, etc.
define('DEBUG_MODE', true);
//Uncomment to enable error reporting.
define('DEVELOPMENT', true);
Also I cleared the cashe .. but still can not see the bug icon ..
Please check the website header or others blocks, maybe something is over debug icon and have a higher z-index :D
Thanks Tony for the reply..
I did the following in the config.php file:
//Uncomment to enable the developer tools: debugger, PHP and SQL loggers, etc.
define('DEBUG_MODE', true);
//Uncomment to enable error reporting.
define('DEVELOPMENT', true);
Also I cleared the cashe .. but still can not see the bug icon ..
Please check the following article
https://docs.cs-cart.com/4.9.x/developer_guide/tools/debugger.html
Okay thanks ... I will use all what you suggested .. thanks
It is best to have DEBUG and DEVELOPMENT be defined for you (or some set of users) only.
Here's what I use at many of my clients for a 'local_conf.php' file which is included from config.local.php.
Just change the $debug_ip's array to use your IP (or an array of different IP's) and it should work fine. You shouldn't have to clear the cache.
/* * Copyright 2011, 1st Source IT, LLC, EZ Merchant Solutions */ use Tygh\Registry;if( !defined(‘BOOTSTRAP’) ) die(‘Access denied’);
define(‘my_debug_enabled’, true); // change to false to disable
function my_debug_ip() {
$debug_ips = array(‘xx.yy.117.55’);
return in_array($_SERVER[‘REMOTE_ADDR’], $debug_ips);
}if( defined(‘my_debug_enabled’) && my_debug_enabled && my_debug_ip() ) {
if(!defined(‘DEVELOPMENT’)) define(‘DEVELOPMENT’, true);
define(‘DEBUG_MODE’, true);
error_reporting(E_ALL);
ini_set(‘display_errors’, true);
}
It is best to have DEBUG and DEVELOPMENT be defined for you (or some set of users) only.
Here's what I use at many of my clients for a 'local_conf.php' file which is included from config.local.php.
Just change the $debug_ip's array to use your IP (or an array of different IP's) and it should work fine. You shouldn't have to clear the cache.
/* * Copyright 2011, 1st Source IT, LLC, EZ Merchant Solutions */ use Tygh\Registry;if( !defined(‘BOOTSTRAP’) ) die(‘Access denied’);
define(‘my_debug_enabled’, true); // change to false to disable
function my_debug_ip() {
$debug_ips = array(‘xx.yy.117.55’);
return in_array($_SERVER[‘REMOTE_ADDR’], $debug_ips);
}if( defined(‘my_debug_enabled’) && my_debug_enabled && my_debug_ip() ) {
if(!defined(‘DEVELOPMENT’)) define(‘DEVELOPMENT’, true);
define(‘DEBUG_MODE’, true);
error_reporting(E_ALL);
ini_set(‘display_errors’, true);
}
Awesome! good to know that ,, thanks alot Tony :)