
While developing Drupal sites, sometimes we may wish to see whether our function is getting called or whether we reach a point or not in the execution path. Usually the dpm() or print_r() functions comes handy in the case, but sometimes, we may not be able to see the debug messages printed due to page redirection just after our print.