Degugging via the Watchdog

Rating: 
+1
-461
-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