dsm vs drupal_set_message vs debug vs dpm vs watchdog for developing
If devel is available, i use mostly dpm. If not, I use drupal_set_message(print_r($array, true)). This helps me in the most cases. If both are not available or visible, I use the Watchdog.