Details
-
Type:
Improvement
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
I suggest to add this function to functions.generall.php.
This makes you able to output some Debug-Values to the Browser-Console.
BTW: I would preffer to output the Debug-Log all the time in Browser-Console. Currently the "debug-output" in the Navigation-Frame is a crap.
function consoleLog($value,$type="log"){ $value = json_encode($value); echo '<script> console.'.$type.'( "Debug-Msg:", "\nFile:", "'.__FILE__.'", "\nLine:", '.__LINE__.', "\nFunction:", "'.__FUNCTION__.'", "\nMethod:", "'.__METHOD__.'", "\nClass:", "'.__CLASS__.'", "\nValue:", '.$value.' ); </script>'; } consoleLog($_POST);
Maybe see here : http://forum.contenido.org/viewtopic.php?f=100&t=36923&hilit=+console