Turning on debugging at runtime: Difference between revisions
Appearance
m SmartDebug moved to Turning on debugging at runtime |
No edit summary |
||
| Line 1: | Line 1: | ||
{{Howto|Easy|}} | |||
How to use smart_debug? | How to use smart_debug? | ||
Revision as of 21:08, 25 August 2006
|
ATK Howto: Turning on debugging at runtime
|
How to use smart_debug?
Debugging for selected ip-addresses
$config_smart_debug[] = array("type"=>"ip","list"=>array("195.168.0.10","195.168.0.11"));
This will enabled debugging for the listed IP addresses.
Turn on debugging on the fly
$config_smart_debug[] = array("type"=>"request", "key"=>"magicbeans");
This will not show debugging info by default, unless someone adds &atkdebug[key]=magicbeans to the url. From that moment, debugging is enabled for the session.
It's a kind of 'turn on debugging with a password' option.