Degugging via the Watchdog

Error message

Deprecated function: Function create_function() is deprecated in GeSHi->_optimize_regexp_list_tokens_to_string() (line 4698 of /home/projects/peter-j-lord/sites/all/libraries/geshi/geshi.php).
Rating: 
+1
-462
-1
Clone this Snippet
This allows to display an object/ array (example : $node / $form ) in a more friendly way in the watchdog.
watchdog("module_name", '<pre>' . var_dump( $the_array_object, true) . '</pre>'); 
Category: 
Drupal
Drupal Version: 
7
Drupal Category: 
Development/DebugUtility