-
Notifications
You must be signed in to change notification settings - Fork 1
Debug technics
sinsunsan edited this page Sep 12, 2012
·
28 revisions
Lister tous les hook appelé par drupal dans drupal 7 includes/modules.inc
-
Integrate backtrace to drupal_set_message
Lullabot post that explain how to backtrace when an error occure http://www.lullabot.com/articles/quick-and-dirty-debugging -
Lister les différents hook appelés Changer la fonction d'invocation des hooks situés includes/module.inc:815:function module_invoke_all($hook) { Code on gist https://gist.github.com/7ae97f626eb1629aaa38
-
Lister les appels de fonction (backtrace)
print "<pre>";
print_r(debug_backtrace());
print "</pre>";
To print the calling function without the arguments passsed from function to function
print "<pre>";
print_r(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS));
print "</pre>";
Display the permission string return FALSE
if (!$perm[$account->uid][$string]){print_r($string . '<br>');}